Add current script and more detailed logging for node.prototype.appendChild