cleaning up code
renaming variables
added requirejs file for later use