Added jshint in the toolchain. Fixed all jshint warnings and errors.