cleans up html file