commented client.js