jshint config and some formatting fixes