Support for IE

Removing nodes failed in IE due to different method name for removing a DOM node.