use safari-compatible DOM node removal