Cleaning up completed html