Javascript String subdomain()
subdomain()
String.prototype.subdomain = function() { return this.substr(0, this.indexOf("." + config.domainHost)); };