diff --git a/unpacked/jax/output/CommonHTML/autoload/mtable.js b/unpacked/jax/output/CommonHTML/autoload/mtable.js
index 07df5395b1cd3a006b791b7ab480d8106778376a..afc57c4f4b5ebc7240b16ea874e52b83d98be207 100644
--- a/unpacked/jax/output/CommonHTML/autoload/mtable.js
+++ b/unpacked/jax/output/CommonHTML/autoload/mtable.js
@@ -220,7 +220,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
         for (var j = 0, M = row.length; j < M; j++) {
           var s = (rdata.type === "mtr" ? 0 : LABEL);
           var mtd = rdata.data[j-s] || {CHTML: CHTML.BBOX.zero()};
-          cell = row[j].style; cbox = mtd.CHTML;
+          var cell = row[j].style; cbox = mtd.CHTML;
           //
           //  Space and borders between columns
           //
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
index 05c4d3ce40643802f8e3aa263a3a2651fcc365fd..dae5dde5fb83c40411971bdf89f7119f0dfd98d4 100644
--- a/unpacked/jax/output/CommonHTML/jax.js
+++ b/unpacked/jax/output/CommonHTML/jax.js
@@ -394,7 +394,7 @@
     
     preTranslate: function (state) {
       var scripts = state.jax[this.id], i, m = scripts.length,
-          script, prev, node, test, span, jax, ex, em;
+          script, prev, node, test, span, jax, ex, em, scale;
       //
       //  Get linebreaking information
       //
@@ -1313,7 +1313,7 @@
     },
     combine: function (cbox,x,y) {
       cbox.X = x; cbox.Y = y;  // save for use with line breaking
-      scale = cbox.rscale;
+      var scale = cbox.rscale;
       if (x + scale*cbox.r > this.r) this.r = x + scale*cbox.r;
       if (x + scale*cbox.l < this.l) this.l = x + scale*cbox.l;
       if (x + scale*(cbox.w+(cbox.L||0)+(cbox.R||0)) > this.w)
@@ -1326,7 +1326,7 @@
       if (scale*cbox.b - y > this.b) this.b = scale*cbox.b - y;
     },
     append: function (cbox) {
-      scale = cbox.rscale; var x = this.w;
+      var scale = cbox.rscale; var x = this.w;
       if (x + scale*cbox.r > this.r) this.r = x + scale*cbox.r;
       if (x + scale*cbox.l < this.l) this.l = x + scale*cbox.l;
       this.w += scale*(cbox.w+(cbox.L||0)+(cbox.R||0)) ;
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
index 430d84a36065bf9ebcf49827b337285b2e149262..d73e2b1e65c836d62f2fc7735b228e6320e7880f 100644
--- a/unpacked/jax/output/SVG/jax.js
+++ b/unpacked/jax/output/SVG/jax.js
@@ -34,6 +34,8 @@
   var SVGNS   = "http://www.w3.org/2000/svg";
   var XLINKNS = "http://www.w3.org/1999/xlink";
 
+  var EVENT, TOUCH, HOVER; // filled in later
+
   //
   //  Get the URL of the page (for use with xlink:href) when there
   //  is a <base> element on the page.
@@ -2059,7 +2061,7 @@
 	  }
 	} else {
 	  if (!sub) {
-	    values = this.getValues("displaystyle","texprimestyle");
+	    var values = this.getValues("displaystyle","texprimestyle");
 	    p = SVG.TeX[(values.displaystyle ? "sup1" : (values.texprimestyle ? "sup3" : "sup2"))];
 	    u = Math.max(u,p*scale,sup.d+(1/4)*x_height,min.superscriptshift);
             svg.Add(sup,x+delta,u);