What's wrong with this code?
body.removeChild()
document.removeChild()
It calls body.removeChild() with an element type, not an element.