Javascript hoists variables to the top of scope, so `url` here refers to the `url` variable defined lower in the block.