XT.executeFunction() (also in js_init) would be able to take care of this case.