Write HTML output file