rem: menuManager.appendToolbarItem (maintoolbar, null, spec.items[i]); 
add: menuManager.appendToolbarItem (maintoolbar, null, spec.items[i][0]); 
context: function createMainToolbar(document){    var maintoolbar = document.getElementById("maintoolbar");    var menuManager = console.menuManager;    var spec = console.menuSpecs["maintoolbar"];    for (var i in spec.items)    {        menuManager.appendToolbarItem (maintoolbar, null, spec.items[i]);    }    maintoolbar = document.getElementById("maintoolbar-outer");    maintoolbar.removeAttribute ("collapsed");    maintoolbar.className = "toolbar-primary chromeclass-toolbar";    var toolbox = document.getElementById("main-toolbox");    toolbox.removeAttribute ("collapsed");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/32fd7b1a20b894d4122642a7d7eea4e463904729/venkman-menus.js/clean/extensions/venkman/resources/content/venkman-menus.js