User:Pony and meatball sub/chat.js

function sendButtonOnClick {   var textToSend = $('#Write').children('.message').children('textarea[name=message]').val; var chatEntry = new models.ChatEntry({       roomId: this.roomId,        name: wgUserName,        text: textToSend    }); mainRoom.socket.socket.send(chatEntry.xport); $('#Write').children('.message').children('textarea[name=message]').val(""); }

if (!$('#sendButton').length) {	$('#Write').children('.message').children('textarea[name=message]').css("width", "70%"); $('#Write').children('.message').append('SEND'); }