Removes duplicate script tag and div.