Update replace.js syntax (again)