updated to include jquery domains and subdomains