<html>
<head>
    <title>A Simple SPA For Tasks</title>
    <script type="application/javascript">
        function displayAllTasks() {
            clearTasksTable();
            fetchAllTasks().then(displayTasks)
        }

        function displayTasksWithPriority() {
            clearTasksTable();
            const priority = readTaskPriority();
            fetchTasksWithPriority(priority).then(displayTasks)
        }

        function displayTask(name) {
            fetchTaskWithName(name).then(t =>
   