added replace.js