Fixed some errors with jshint