Probably best to move all the `require("url")` s to the top of the file with the rest of the `require`s.