Switch back to SetTimeout, but make the timeout clear on function call; This allows updateChat to be called independently wihtout setting up multiple timeouts
Switch to using the form id instead of the button id; This allows one to hit enter to submit a chat message with AJAX as well