Updatex index.html with template