結果 : update an object in array of objects javascript