rem: document.firstChild.appendChild (parentElem); 
add: document.documentElement.appendChild (parentElem); 
context: function cmgr_instkeys (document, commands){    var parentElem = document.getElementById("dynamic-keys");    if (!parentElem)    {        parentElem = document.createElement("keyset");        parentElem.setAttribute ("id", "dynamic-keys");        document.firstChild.appendChild (parentElem);    }    if (!commands)        commands = this.commands;        for (var c in commands)        this.installKey (parentElem, commands[c]);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b84d79635fd0ebe17732799a3aa9b5852b9915e8/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js