refactors index.html