delete the extra codes in html file