Fix issue with trailing comma; many style fixes, jshintrc and other jshint conf