subdomain handling and external js