updated to take current tab's base domain from URL