Add jshint grunt task

Adds a `grunt jshint` task which analyses the javascript files for errors and style.

Not sure which branch to pull to, please advise if `master` is incorrect.