anchor.diff:    });
   
   	function chat_ready() {
  -		resize();	
   		localise_time();
   		Secpubsub.connection_lost = function (subscription, closeEvent) {
   			if (subscription.channel == '/messages/new')
  
positive.code: <script type="text/javascript">
  	
  	function resize() {
  		$(".left").height(window.innerHeight-270 /* TODO calculate size of header and footer */ + 'px');
  		$('#message_body').width(($('#chatlog').width())-30+'px');
  		var height = document.getElementById("chatlog").scrollHeight - $('#chatlog').height(); 
  		$('#chatlog').scrollTop(height);
  
negative.code: 
  		// Application flashes_message, and turbo links prevents clean up, so unsubscribe here
  		Secpubsub.unsubscribe('/messages/new', flash_message); 
  		resize();	
  	}
  
  	$(document).ready(chat_ready);
  