archive: moved <script> from report.cgi. don't output <html> etc from report.cgi because it is inlined in /archive/index.php