write generated output to index.html