diff --git a/src/mediaelement.js b/src/mediaelement.js
index <HASH>..<HASH> 100644
--- a/src/mediaelement.js
+++ b/src/mediaelement.js
@@ -24,8 +24,8 @@
 
     // for IE<9
     var mediaElements = ['audio', 'video', 'source'];
-    for (var x in mediaElements)
-        document.createElement(mediaElements[x]);
+    for (var i=0;i< mediaElements.length; i++)
+        document.createElement(mediaElements[i]);
 
     // Namespace
     var html5 = {};
Removed for/in loop as per oyvindkinsey's excellent critique.