JavaScript API to work against complex domain names, subdomains and URIs.