anchor.diff:      return url === null ? "none" : url;
     }
   
  -  socket.on('room details', function(msg){
  -    $('#roomname h6').text(msg.room);
  +  socket.on('room details', function(change_room){
  +    $('#messages').empty();
  +    $('#roomname h6').text(change_room.room);
     });
   
     $('form').submit(function(){
  
positive.code:     });
    };
    
    var data = {username: username};
    socket.emit('user config', data);
  
    $('#top').on('click', function(){
  
negative.code:   // console.log("Current User: ", window.userName);
  
    var socket = io("<%= Rails.configuration.socket_url %>");
  
    $('#random_chat').on('click', function(){
      socket.emit('random chat', data);
      $('#messages').empty();
      $('#roomname h6').html("Random Room!");
    });
  
    socket.on('random chat', function(message){
      console.log(message);
    });
  
    socket.on('all users', function(allUsers){
      // console.log(array);
  