Use jshint to check javascript errors.

Using grunt-contrib-jshint to check the javascript errors.
And indeed find an error in client.js. Fix it!