Array#forEach doesn't work in all browsers there for you need to use a `for` or a `while` loop here.