modification on report.js