結果 : update an element in array javascript