added jshint
more improvements