Fixed issue with client.js reporting undefined.