Added jshint to the npm test script and fixed its warnings.