made index.html more modular