Fixed notifications again

Preset volumes wasn't applied correctly
Syntax formatting and JSLint commentation
Merge pull request #1 from jishi/master