Reformat HTML file