Enable jshint linting, fix resulting errors