some comments in client.js