lates = [], plateslist) {
      plateslist.innerHTML = plates.map((plate, i) => {
          return `
            <li>
				<input type="checkbox" data-index=${i} id="item${i}" ${plate.done ? 'checked' : ''} >
                <label for="item${i}">${plate.text}</label>
            </li>
          `;
      }).join('');
  }

  function toggleDone(e) {
	  if (!e.target.matches('input')) return;
	  const el = e.target;
	  const index = el.dataset.index;
	  items[index].done = !items[index].done;
	  populateList(i