Fixed Array.prototype.forEach polyfill