結果 : update an item in an array javascript