diff --git a/assets/script.js b/assets/script.js
index 9ae66ca..74fc6ed 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -106,7 +106,7 @@ async function displayList(data, elementId, deleteFunction) {
if ("function" === typeof deleteFunction) {
const th = document.createElement("th");
- th.appendChild(document.createTextNode(""));
+ th.appendChild(document.createNode(""));
headerRow.appendChild(th);
}