tiny fix for uglify-js

I have been minifying and combining the script with uglifyjs. There was a problem with using 'this', so i changed it to 'window'