forEach for older browsers