結果 : replace an index in array javascript