結果 : how to replace an element in a list javascript