Modification in report-aggregator.js for exporting module