code: function getHash(location) {
      var href = location.href;
      var hashIndex = href.indexOf('#');
  
      if (hashIndex === -1) {
        return '';
      } else {
        return href.substr(hashIndex);
      }
    }
docs: @private
  
  Returns the current `location.hash` by parsing location.href since browsers
  inconsistently URL-decode `location.hash`.
  
  Should be passed the browser's `location` object as the first argument.
  
  https://bugzilla.mozilla.org/show_bug.cgi?id=483304