Write to index.html file