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