Update client.js

first commit after fork