JS : ForEach () tricks