Update client.js

Trying to revert to working code