結果 : update index value in array javascript