Update index.html

Add Documentation section. Shorten sample code.