Update replacetext.js