Write HTML on completion