js/bbks: allow bypass of returning a promise