added a debug in client.js file