added replaceWith to sandbox.dom functions