Syntax formatting and JSLint commentation

Fixed some indentations and closed out some console.log lines. Also
added JSLint settings to the top.