Added jshint. I've also added this as part of the tests to stop the code getting messy on PRs