Fixed scripts to be minified friendly

The problem was that since these files are going to be minified and combined into one you will have to make sure that the variable and function names are global if you want to access them from different files. So the only change that I've made was to use the `window.` prefix in your files.

Also since there are no other conflicts, I removed the separate script module entry and it's part of your scripts (check the config.py changes).