Fixed errors in comments and uniform jshint comments.
Easier to follow structure in main.js.