Adds jshint'ing on npm scripts test/travis and resolved jshint errors