htdocs/demo/report/index.php: add "Archive" link in navbar.
htdocs: move inline JS to a separate file.