Allocate JsNetworkRequest on the stack to avoid leaking it.