In the C++ it's creating a new instance of the `stats_constructor_function`. The fastest way would be to set all the prototype methods directly on the JS Stats constructor and have this return the new instance. Instead of having C++ instantiate it.