JS: passing the reportId through