text: document.querySelector("#add-time")
  .addEventListener('click', clonefield)
  
  function clonefield() {
      const newFieldContainer = document.querySelector('.schedule-item').cloneNode(true)
  
      const fields = newFieldContainer.querySelectorAll('input')
  
      fields.forEach(function(field) {
          field.value = ""
      })
      document.querySelector('#schedule-items').appendChild(newFieldContainer)
  }