Fix invalid javascript on frontpage example

I'm not sure if the alignment is ideal, so happy to change that, but the most
prominent (and simplest) example that's on the front page is currently broken
without this patch.