reformat client js
To closure object client.js