add javascript rpcStubMock.