report.js code update