diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt
index 17c9db85b0226d35215b7733f9e5e61b4a159f51..8fd92a0abe58a32c72284cbc2fd3cc00ee5e8bc0 100644
--- a/devNotes/twine JS.txt	
+++ b/devNotes/twine JS.txt	
@@ -838,84 +838,84 @@ window.cumAmount = function(slave) {
 
 window.lispReplace = function(text)
 {
-	text = text.replace("Sh", "Th");
-	text = text.replace("SS", "Th");
-	text = text.replace("Ss", "Th");
-	text = text.replace("sS", "Th");
-	text = text.replace("S", "Th");
-	text = text.replace("aX", "aKTH");
-	text = text.replace("eX", "eKTH");
-	text = text.replace("iX", "iKTH");
-	text = text.replace("oX", "oKTH");
-	text = text.replace("uX", "uKTH");
-	text = text.replace("yX", "yKTH");
-	text = text.replace("AX", "AKTH");
-	text = text.replace("EX", "EKTH");
-	text = text.replace("IX", "IKTH");
-	text = text.replace("OX", "OKTH");
-	text = text.replace("UX", "UKTH");
-	text = text.replace("YX", "YKTH");
-	text = text.replace("Xa", "Tha");
-	text = text.replace("Xe", "The");
-	text = text.replace("Xi", "Thi");
-	text = text.replace("Xo", "Tho");
-	text = text.replace("Xu", "Thu");
-	text = text.replace("Xy", "Thy");
-	text = text.replace("XA", "THA");
-	text = text.replace("XE", "THE");
-	text = text.replace("XI", "THI");
-	text = text.replace("XO", "THO");
-	text = text.replace("XU", "THU");
-	text = text.replace("XY", "THY");
-	text = text.replace("X", "EKTH");
-	text = text.replace("zZ", "Th");
-	text = text.replace("Zz", "Th");
-	text = text.replace("ZZ", "TH");
-	text = text.replace("Z", "Th");
-	text = text.replace("Ci", "Thi");
-	text = text.replace("Ce", "The");
-	text = text.replace("Cy", "Thy");
-	text = text.replace("CI", "THI");
-	text = text.replace("CE", "THE");
-	text = text.replace("CY", "THY");
-	text = text.replace("C", "Th");
-	text = text.replace("ss", "th");
-	text = text.replace("sh", "th");
-	text = text.replace("s", "th");
-	text = text.replace("zz", "th");
-	text = text.replace("z", "th");
-	text = text.replace("ax", "akth");
-	text = text.replace("ex", "ekth");
-	text = text.replace("ix", "ikth");
-	text = text.replace("ox", "okth");
-	text = text.replace("ux", "ukth");
-	text = text.replace("yx", "ykth");
-	text = text.replace("Ax", "Akth");
-	text = text.replace("Ex", "Ekth");
-	text = text.replace("Ix", "Ikth");
-	text = text.replace("Ox", "Okth");
-	text = text.replace("Ux", "Ukth");
-	text = text.replace("Yx", "Ykth");
-	text = text.replace("xa", "tha");
-	text = text.replace("xe", "the");
-	text = text.replace("xi", "thi");
-	text = text.replace("xo", "tho");
-	text = text.replace("xu", "thu");
-	text = text.replace("xy", "thy");
-	text = text.replace("xA", "thA");
-	text = text.replace("xE", "thE");
-	text = text.replace("xI", "thI");
-	text = text.replace("xO", "thO");
-	text = text.replace("xU", "thU");
-	text = text.replace("xY", "thY");
-	text = text.replace("x", "ekth");
-	text = text.replace("ci", "thi");
-	text = text.replace("ce", "the");
-	text = text.replace("cy", "thy");
-	text = text.replace("cI", "thI");
-	text = text.replace("cE", "thE");
-	text = text.replace("cY", "thY");
-	text = text.replace("c", "th");
+	text = text.replace(/Sh/g, "Th");
+	text = text.replace(/SS/g, "Th");
+	text = text.replace(/Ss/g, "Th");
+	text = text.replace(/sS/g, "Th");
+	text = text.replace(/S/g, "Th");
+	text = text.replace(/aX/g, "aKTH");
+	text = text.replace(/eX/g, "eKTH");
+	text = text.replace(/iX/g, "iKTH");
+	text = text.replace(/oX/g, "oKTH");
+	text = text.replace(/uX/g, "uKTH");
+	text = text.replace(/yX/g, "yKTH");
+	text = text.replace(/AX/g, "AKTH");
+	text = text.replace(/EX/g, "EKTH");
+	text = text.replace(/IX/g, "IKTH");
+	text = text.replace(/OX/g, "OKTH");
+	text = text.replace(/UX/g, "UKTH");
+	text = text.replace(/YX/g, "YKTH");
+	text = text.replace(/Xa/g, "Tha");
+	text = text.replace(/Xe/g, "The");
+	text = text.replace(/Xi/g, "Thi");
+	text = text.replace(/Xo/g, "Tho");
+	text = text.replace(/Xu/g, "Thu");
+	text = text.replace(/Xy/g, "Thy");
+	text = text.replace(/XA/g, "THA");
+	text = text.replace(/XE/g, "THE");
+	text = text.replace(/XI/g, "THI");
+	text = text.replace(/XO/g, "THO");
+	text = text.replace(/XU/g, "THU");
+	text = text.replace(/XY/g, "THY");
+	text = text.replace(/X/g, "EKTH");
+	text = text.replace(/zZ/g, "Th");
+	text = text.replace(/Zz/g, "Th");
+	text = text.replace(/ZZ/g, "TH");
+	text = text.replace(/Z/g, "Th");
+	text = text.replace(/Ci/g, "Thi");
+	text = text.replace(/Ce/g, "The");
+	text = text.replace(/Cy/g, "Thy");
+	text = text.replace(/CI/g, "THI");
+	text = text.replace(/CE/g, "THE");
+	text = text.replace(/CY/g, "THY");
+	text = text.replace(/C/g, "Th");
+	text = text.replace(/ss/g, "th");
+	text = text.replace(/sh/g, "th");
+	text = text.replace(/s/g, "th");
+	text = text.replace(/zz/g, "th");
+	text = text.replace(/z/g, "th");
+	text = text.replace(/ax/g, "akth");
+	text = text.replace(/ex/g, "ekth");
+	text = text.replace(/ix/g, "ikth");
+	text = text.replace(/ox/g, "okth");
+	text = text.replace(/ux/g, "ukth");
+	text = text.replace(/yx/g, "ykth");
+	text = text.replace(/Ax/g, "Akth");
+	text = text.replace(/Ex/g, "Ekth");
+	text = text.replace(/Ix/g, "Ikth");
+	text = text.replace(/Ox/g, "Okth");
+	text = text.replace(/Ux/g, "Ukth");
+	text = text.replace(/Yx/g, "Ykth");
+	text = text.replace(/xa/g, "tha");
+	text = text.replace(/xe/g, "the");
+	text = text.replace(/xi/g, "thi");
+	text = text.replace(/xo/g, "tho");
+	text = text.replace(/xu/g, "thu");
+	text = text.replace(/xy/g, "thy");
+	text = text.replace(/xA/g, "thA");
+	text = text.replace(/xE/g, "thE");
+	text = text.replace(/xI/g, "thI");
+	text = text.replace(/xO/g, "thO");
+	text = text.replace(/xU/g, "thU");
+	text = text.replace(/xY/g, "thY");
+	text = text.replace(/x/g, "ekth");
+	text = text.replace(/ci/g, "thi");
+	text = text.replace(/ce/g, "the");
+	text = text.replace(/cy/g, "thy");
+	text = text.replace(/cI/g, "thI");
+	text = text.replace(/cE/g, "thE");
+	text = text.replace(/cY/g, "thY");
+	text = text.replace(/c/g, "th");
 	return text;
 }