JavaScript implementation of XJRPC