adding jshint configuration
fixing style for several core files