Use jQuery.remove() instead of DOMElement.remove() because the later is unavailable in IE8.