added comments to index.html and formated code