fix js for report