jshint syntax fixes