for loop instead of forEach for ie<9
Merge pull request #1 from substack/master

remove forEach, now works in ie<9