結果 : how to update a nested object in javascript