anchor.diff:    socket.on('room details', function(change_room){
       $('#messages').empty();
       $('#roomname h6').text(change_room.room);
  +    window.socket_room = change_room.room;
     });
   
     $('form').submit(function(){
  
positive.code:   });
  
    socket.on('all users', function(allUsers){
      // console.log(array);
    });
  
    if (currentUser){
  
negative.code:   });
  
    
    socket.on('chat message room change', function (msg) {
      $('#messages').prepend($('<li>').html(
        '<span class="message">YapsBot: ' + msg.name + " " + msg.text + " " + '</span><span class="time">' + msg.stamp + '</span>'
      ));
    });
  
    socket.on('chat message', function(msg){
  