Fixed some jshint warnings