ENYO-1030: use of enyo.forEach instead of for loop