JS Exercise for Calculating the Avg in an Array