adding to jshintrc and fixing jshint errors