add jshint config file; fix some errors