Cleanup. Switch from jslint to jshint
Fix default options. emitError was missing. Also supply full failure information to the exception