Thrift scala server and JS client