'Return' key now sends chats.

Plus minor correction to previous pull (missing 'var' declarations in chat.js).