fixed jshint problems