extContent = userName
      messageText.textContent = text
      messageTime.setAttribute('datetime', time.machineTime)
      messageTime.textContent = time.userTime

      message.appendChild(user)
      message.appendChild(messageText)
      message.appendChild(messageTime)

      return message
    }

    let userFirstMessage = false

    function sendMessage() {
      let text = userMessage.value

      if(text.trim()) {
        const time = getFormattedDate()
        const userMessageElement = createMe