Update replace.js

Instead of using the same replacement string all matches,
generate a random combination for each match.