Add linting test

Just some small ops stuff to add `jshint` to the test process.

I don't have any particular view on the code style, except that it should be tested/enforced :) thoughts?