fixed jshint warnings