backport forEach for IE8 too