[#1056] Added quick JS linter
[#1056] JSLint fixes
[#1056] Fix for mocha tests
[#1056] Template whitespace cleanup