Modernize for;;-loops

Change-Id: Ic6f86af0d674cc6643fc9eef2aa7431cfdf514f2
diff --git a/dev/js/src/selectMenu.js b/dev/js/src/selectMenu.js
index 4db1dcd..dc2c8e6 100644
--- a/dev/js/src/selectMenu.js
+++ b/dev/js/src/selectMenu.js
@@ -12,13 +12,13 @@
 
 	      // Prepare list before object upgras
 	      var list = [];
-	      var options = select.getElementsByTagName('option');
 
         // Iterate through options list
-	      for (var i = 0; i < options.length; i++) {
-
+        Array.from(
+          select.getElementsByTagName('option')
           // Get option item and add to list
-	        var item = options.item(i);
+        ).forEach(function(item) {
+        
 	        var opt = [
 	          item.textContent,
 	          item.getAttribute('value')
@@ -29,7 +29,7 @@
 	          opt.push(item.getAttribute('desc'));
 
 	        list.push(opt);
-	      };
+	      });
 
 	      // Create object with list
 	      var obj = Object.create(menuClass).upgradeTo(this)