fixed jshint complaints