ie8 fix

ie8 doesn't have Array#forEach