Pass JS gated object back to JS context