Refactoring of index.html