Javascript RPC for Java Classes