Update client.js

same change as in pomelo-rpc