added jshint task and fixed a couple of small things