I suggest exposing some method from C++ to JS-land, which will accept constructor function and store it in a static variable. And this function should be called from `src/node.js`