This Java Script example uses tutorial.thrift and a Thrift server using JSON protocol and HTTP transport.