Use angular's forEach instead of ES 5 forEach to avoid incompatibility with IE<9