Updating URL handling in JSDOM