)) {
        const statusWrapper = document.getElementById(`worker-state-${event.WorkerAvailable.worker_id}`);
        removeAllChildren(statusWrapper);
        statusWrapper.appendChild(renderWorkerStatus("Available"));
      }
    }

    function onJobEvent(event) {
      const keys = Object.getOwnPropertyNames(event);
      if (keys.includes("Queued")) {
        const jobsEl = document.getElementById("jobs");
        jobsEl.insertBefore(renderJob(event.Queued), jobsEl.firstElementChild);
      } else if 