)}T${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}`

      return {userTime, machineTime}
    }

    function createMessage(className, userName, text, time) {
      const message = document.createElement('div')
      const user = document.createElement('p')
      const messageText = document.createElement('p')
      const messageTime = document.createElement('time')

      message.className = className
      user.t