結果 : update an array of objects in javascript