better proxy for JSClass
Fixed py->py rpc
refactored js->py rpc