diff --git a/lib/scripts/index.js b/lib/scripts/index.js
index c33eb959719f9cd85d012d290ecad21775bdf24b..9c7943d0c377d75340f032c39f35bbae717442d8 100644
--- a/lib/scripts/index.js
+++ b/lib/scripts/index.js
@@ -4,7 +4,7 @@
  * @author Andreas Gohr <andi@splitbrain.org>
  */
 
-index = {
+var index = {
 
      /**
      * Delay in ms before showing the throbber.