fixed client.js