code: function openChat() {
          var num = validateNum();
  
          if(num) {
              socket.emit('setup', num, function() {
                  number = num;
                  $('#num').hide();
                  $('#chat').show();
              });
          }
      }
docs: opens a chat session with a number