Add js routine to render toolbar.