Copied dynamicreplacer.js in place ready for usage