Set a default options object and promise if they are not defined.

@incuna/js please.