結果 : how to loop through a list of objects in javascript