Update index.html

Reindent the example function