index.html refactored