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