fixed jshint issues