FromForm();
            sendPOST("/tasks", task).then(displayAllTasks);
        }

        function buildTaskFromForm() {
            return {
                name: getTaskFormValue("newTaskName"),
                description: getTaskFormValue("newTaskDescription"),
                priority: getTaskFormValue("newTaskPriority")
            }
        }

        function getTaskFormValue(controlName) {
            return document.addTaskForm[controlName].value;
        }

        function taskDisplay() {
     