Update client.js

Applying a fix