Refactoring of index.html.