結果 : update an element in an array javascript