JavaScript API to work against complex domain names, subdomains and URIs.
github.com/oncletom/tld.js
oncletom/tld.js