結果 : how to loop through nested objects javascript