Fixed some warnings from jshint