ReferenceError: client is not defined