Fix many issues found by JSLint
Remove Node.js support