Use JS_ObjectToOuterObject in wrap callbacks.