Remove uses of remove() unsupported by IE