index.html: load javascript at the end of the page, not the beginning

I should have known, since I have read a book about it.