Removes an element from the DOM