index.html: Add some comments to clarify code.

Also fix indentation.