add jsapi stub