Modernize for;;-loops

Change-Id: Ic6f86af0d674cc6643fc9eef2aa7431cfdf514f2
diff --git a/dev/js/src/match.js b/dev/js/src/match.js
index 7ce2652..4f5aedf 100644
--- a/dev/js/src/match.js
+++ b/dev/js/src/match.js
@@ -97,18 +97,18 @@
       };
 
       // Iterate over info layers
-      for (var i = 0; i < this.available.length; i++) {
-        var term = this.available[i];
+      let layer;
+      this.available.forEach(function(term){
 
         // Create info layer objects
         try {
-          var layer = require('match/infolayer').create(term);
+          layer = require('match/infolayer').create(term);
           this._avail[layer.type].push(layer);
         }
         catch (e) {
-          continue;
+          return;
         };
-      };
+      }, this);
       
       return this;
     },