nodejs thrift implementation