Adding xhr object to error handlers. Removing minified js from repository.
Updates for new version UglifyJS.