anchor.diff:    window.socket_room = "lobby";
     window.userName = $("span.current_user").text() || "Anonymous";
   
  -  // console.log("Current User: ", window.userName);
  -
     var socket = io("<%= Rails.configuration.socket_url %>");
   
     $('#random_chat').on('click', function(){
  
positive.code:   });
  
    
    socket.on('chat message room change', function (data) {
      window.socket_room = data.socket_room;
    });
  
    socket.on('chat message', function(msg){
  
negative.code:   socket.on('room details', function(change_room){
      $('#messages').empty();
      $('#roomname h6').text(change_room.room);
      window.socket_room = change_room.room;
    });
  
    $('form').submit(function(){
  