Add jshint

Also fixes a few jshint erorrs, and updates the Makefile to run jshint in `make test`.