Provide API to use GMainContext in Node.js