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.
Merge pull request #209 from ivanov/fix-frontpage-typo

Fix invalid javascript on frontpage example