Fix bug with requirejs
Call replace method from String.prototype