Wrong function name in client.js