Client.js: Fixed Errors