Use url.resolve over path.join

path.join does OS based path joining, on Windows this causes back slashes in the path which is not a valid url.