Removing extra code in html