JShint

This pull request adds [JShint](http://www.jshint.com/), a static code analysis tool.
It also includes a basic configuration file.