Add small wrappers around JS_AddValueRoot. Add JS_BeginRequest in our custom code. https://bugzilla.gnome.org/show_bug.cgi?id=630539