Fixed #304 -- Split JavaScript code between the toolbar itself and each panel.