fix client.js