shouldn't this be:

    if (host.parentNode) host.parentNode.removeChild(host); 

?