write new index.html