Polyfill Array.prototype.forEach