Replaced .remove() method, unsupported in IE