Fixed some jshint complaints