Adding jshint to the npm test script

i added the command to run jshint when running `npm test` and also linted the example