<? header('Content-Type: application/javascript'); ?> var referrer = '<? echo $_SERVER["HTTP_REFERER"]; ?>';