Move global_object_for_js_object to global.rs