Refactored and cleaned up index.html