Update client.js

js cleanup