fixed jshint erros