update client.js