delete extraneous code in html