Changed forEach polyfill