docs: function getHash(location) {
      var href = location.href;
      var hashIndex = href.indexOf('#');
  
      if (hashIndex === -1) {
        return '';
      } else {
        return href.substr(hashIndex);
      }
    }