Add automated jshint tests (and some unfinished code)