extracted hostname sans domain name from location.hostname in displayBlock function