Syntax formatting and JSLint commentation

Fixed some indentations and closed out some console.log lines. Also
added JSLint settings to the top.
Merge pull request #1 from jishi/master

Preset volumes wasn't applied correctly
Merge pull request #8 from Lockzi/master

Syntax formatting and JSLint commentation