[Cleanup] errors detected by JSLint in Client.js