add a base domain function to extract the TLD from a URL