Javascript Loop Through Array Elements All Have The Same