forEach loops in Promise notation