fixed jshint errors