Making client.js shorter.