Moved reporting js to appropriate file