Fixed JSON issue in client.js.