Fix generic js-interop calls to the API