you can do something like this here:

    map: function(url) url.toString()

to convert a URL instance to a string and avoid the changes on line 57-59