rem: var chat=$('chat'); 
add: var divChat=document.getElementById("chat"); 
context:   _chat: function(message)  {     var chat=$('chat');     var from=message.getAttribute('from');     var special=message.getAttribute('alert');     var text=message.childNodes[0].data;     if ( special!='true' && from == room._last )         from="...";     else     {         room._last=from;         from+=":";     }          if(chat != null)     {         if (special=='true')           chat.innerHTML += "<span class=\"alert\"><span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span></span><br/>";         else           chat.innerHTML += "<span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span><br/>";         chat.scrollTop = chat.scrollHeight - chat.clientHeight;          }       },
meta: 9683	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9683/5b12f5d8566048eab237ff55321d4eaead40f48d/chat.js/buggy/trunk/examples/test-webapp/src/main/webapp/chat/chat.js