Added error-reporting.js and tweaked comments in ajax.js