Update client.js

Reverting to original code.