Brought most files up to JSLint standard.
Merge branch 'jslint'