Removed uneccessary global variable in example chat