Remove unnecessary text from HTML file