text: var myDiv;
  var built = false;
  
  // button initialization
  document.getElementById("ent").onclick = () => {
    addNewToDo(document.getElementById("userName").value);
    document.getElementById("userName").value = "";
  }
  document.getElementById("todo-remove-button").onclick = () => removeToDoListInstances(myDiv.children);
  document.getElementById("bb5").onclick = () => mainMenu();
  
  function addNewToDo(inner) {
    let arr = getCookie("todolist").split("!@#$%^&*");
    arr.push(inner);
    addCookie("todolist", arr.join("!@#$%^&*"));
    addToToDoList(inner);
  }
  
  function removeToDoListInstances(subarr) {
    var i = subarr.length - 2;
    var arr = getCookie("todolist").split("!@#$%^&*");
  	while (i >= 0) {
  		if (subarr[i].checked) {
  			const index = arr.indexOf(subarr[i].value);
  			arr.splice(index, 1);
  			myDiv.removeChild(subarr[i]);
  			myDiv.removeChild(subarr[i]);
  		}
      i -= 2;
  	}
    addCookie("todolist", arr.join("!@#$%^&*"));
  }
  
  function setToDoList() {
    document.getElementById("MainMenu").hidden = true;
    document.getElementById("SetupTimer").hidden = true;
    document.getElementById("TimerOn").hidden = true;
    document.getElementById("abortedScreen").hidden = true;
    document.getElementById("ToDoList").hidden = false;
    if (!built) {
      myDiv = document.createElement("div");
      document.getElementById("cboxes").appendChild(myDiv);
      const things = getCookie("todolist").split("!@#$%^&*");
      for (let i = 0; i < things.length; i += 1) addToToDoList(things[i]);
      built = true;
    }
  }
  
  function addToToDoList(inner) {
    if (inner == "") return;
    let check = document.createElement("INPUT");
    check.setAttribute("type", "checkbox");
    check.name = inner;
    let label = document.createElement("LABEL");
    label.innerText = inner + "\n";
    label.className = "boxes";
    label.name = inner;
    myDiv.appendChild(check);
    myDiv.appendChild(label);
  }
  