Check referer to help prevent external score submissions
Wrap scripts in anonymous functions to help prevent variable injection