Removed uneccessary global variable in example chat

This can cause issues when copy/pasting into a new project with jshint and is generally considered bad practice.