結果 : update element of array javascript