use msgpack implemented in pure javascript