cb6724re-add accidental removed of var keyword
diff --git a/tests/tests.js b/tests/tests.js
index 91da2d9..ed71d19 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -466,7 +466,7 @@
     div.setAttribute("align", "center");
     contentEl.appendChild(div);
 
-    batteryTable = generateTable('info', 5, 3, batteryElements);
+    var batteryTable = generateTable('info', 5, 3, batteryElements);
     contentEl.appendChild(batteryTable);
     
     div = document.createElement('h2');