added a dirty hack to define SCRIPT_URL variable