First refactor of index.html