index.html refactor