refactoring index.html.