Cleaned up global namespace by creating seperate modules for each file.
JSLinted the code.