diff --git a/package.json b/package.json
index 1aa24f72f272502358702368602ec216306dab12..f8e44cff177beceb2cb3b656c44b1c80be901e58 100644
--- a/package.json
+++ b/package.json
@@ -33,7 +33,8 @@
     "react-dom": "^15.3.2",
     "source-map-loader": "^0.1.5",
     "ts-loader": "^0.8.2",
-    "webpack": "^1.13.2"
+    "webpack": "^1.13.2",
+    "custom-ol": "github:glennvorhes/custom-ol"
   },
   "repository": {
     "type": "git",
@@ -45,7 +46,6 @@
     "jquery": "2.2.3",
     "jquery-layout": "1.0.0",
     "jquery-ui": "1.10.5",
-    "custom-ol": "glennvorhes/custom-ol",
     "es6-mixins": "^1.0.2",
     "floatthead": "^1.4.0"
   }
diff --git a/webpack.config.js b/webpack.config.js
index 6edd53f218fb2c04d21c984074536f0c32fd4f67..60fb6c8bbe99131b76e29ace720635d20d33b129 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,7 +9,8 @@ const outDir = path.join(__dirname, 'test-html/js');
 const files = fs.readdirSync(testAppDir);
 const entries = {};
 
-for (let e of files) {
+for (var i = 0; i < files.length(); i++) {
+    e = files[i];
     if (e.match(/\.js$/) == null) {
         continue;
     }