<script type="text/javascript">
    var BASE_URI        = '{$base_uri}';
    var BASE_HOST       = '{$base_host}';
    var ERROR_URI       = '{$error_uri}';
    var PAGE_KEY_URI    = '{$page_key_uri}';
    var FAIL_SAFE       = '{$fail_safe}';
    var CURRENT_PAGE    = '{$current_page}';
    var SERVER_CONF     = {$server_conf};
    var SECURE_WEBSOCKET= {$secure_websocket};
</script>
