JavaScript domain name parser based on the Public Suffix List