Update client.js
Merge pull request #157 from YOURsammich/master

Fixed bug