title: window.location.hostname without .com or any other prefix
body: <p>If the value of <code>window.location.hostname</code> gives something like "<em>example.com</em>", How can I get just "example" out of the result?</p>
  
  <p>How can I make    <code>window.location.hostname</code> return without .com or .org </p>