define forEach for browsers that aren't up-to-date