diff --git a/exec/typeasc.js b/exec/typeasc.js
index 3a5b398b219751066d1b3fc2aa28e586036fccfb..3bc9e62211063adb6e605a08596a70a34570d2c5 100644
--- a/exec/typeasc.js
+++ b/exec/typeasc.js
@@ -11,6 +11,7 @@ var f;
 var title='';
 var filename='';
 var mode=P_NONE;
+var i;
 
 for(i in argv) {
 	if(filename=='') {
diff --git a/exec/typehtml.js b/exec/typehtml.js
index b48cfef7340ad48652d8a3596ff4ae9a848716bc..3fecf3923637d23f9cbd3633fd79c57006322017 100644
--- a/exec/typehtml.js
+++ b/exec/typehtml.js
@@ -23,6 +23,7 @@ var LIST_ITEM 		="\1N\r\n    \1H\1Wo \1G"
 
 var f;
 var mono=true;
+var i;
 
 for(i in argv) {
 	switch(argv[i].toLowerCase()) {