Update client.js

Fixed bug with cursors