Integrate jshint into the mocha tests

Copied from https://github.com/wikimedia/restbase/pull/28