結果 : loop through an array of objects javascript