working on the js for reports