Refactors index.html