adding new feature to client.js