Check for hostname from href / Firefox e.target.hostname is sometimes undefined