JavaScript miniApps: Adding Custom Events to the Toolbar