fix el.remove() and el.replace()

tried doing `el.remove()` and `el.replace()` but it didn't work. seems like the code was wrong. can someone confirm i'm not crazy since there are no tests yet? haha