Refactor index.html