Please move ...
chbox_menu
... function out of event listener. It reduces the time to replace the chbox label.
chbox.js
if (window.rcmail) {
chbox_menu();
rcmail.addEventListener('init', function(evt) {
rcmail.register_command('plugin.chbox.selectmenu', rcmail_selectmenu, true);