you can execute a baja script in javascript with
this command [change 'MODNAME' to your bin name]:

bbs.exec("*MODNAME");