Update toolbar.js for multiple toolbars (courtesy nevf)