IE8 doesn't support forEach method on Array.