adding jshint, fixing jshint issues