add comments to client.js