Move all homepage JavaScript into single file

We had two small files plus a handful of inline stuff in the HTML; move
as much of it as possible into a single static file.

Signed-off-by: Dan McGee <dan@archlinux.org>