1. JSLinted lolapi.js .2. Refactored variable definitions to prevent JS hoisting .3. Removed dead console.log() methods .4. Moved various functions around in their proper order; methods were being called before they were defined .5. Removed comments. Code is self explanitory  .6. Refactored code base; Easier to follow now .7. Removed '.call(this)' on the Main function literial because '(function () {}());' is the proper invoking syntax