forEach is not well supported in IE. Just use a for loop.