added jshint options and fixes jshint errors