edits to report.html, moved js into external files