Update client.js

fix to make live tests pass