Added remove function for DOM elements.