結果 : how to loop through a nested object in javascript