Update client.js

more comments