Add JSHint to check style before running tests

I left this as two commits because I think it's kind of two logical changes.