You call `nodeUrl.parse()` 14 times in the code below. Just call it once and store the result as a variable. Then you'll only be parsing the URL one time.