[javascript] How to add a custom button to the toolbar that calls a JavaScript function?