Add JS function to remove replaced elements (img, video, audio, svg, canvas, iframe)