Remove use of node.removes() which is not supported in IE