nkit C++ library port to Node.js