updating client.js