function insertUrl(urls, url) {
  const index = urls.indexOf(url);
  if (index > -1) return index;
  return urls.push(url) - 1;
}
Insert `url` into `urls` array if not already present. Returns
the index of `url` in `urls` for later lookup.
@param {Array<string>} urls
@param {string} url