Within HTML fetch, extract out referrer calculation