Copy of the thrift nodejs module