Update replace.js

Just I moved :

if (replaceBackslashes === true) {
          url = url.replace(/\\/g, '/');
        }

In this way working