write output to .html file