Done some code refactoring of client.js