Fixes #585 Broken JQuery popup on reporting

Ended up writing a report.js and removing report code from thread.js