added jshint
fixed hinting erros