Added in comments with JSLint corrections