Would be better to use enyo.forEach() for cross browser compatibility.