結果 : how to loop over an object in javascript