Add JSHint to test suite and fix JSHint errors

The tests will now fail if the code is ugly! 🎉