code: function(){
          var hashPos = window.location.href.indexOf('#');
  
          if (hashPos == -1) {
              return "";
          }
  
          var qPos = window.location.href.indexOf('?', hashPos);
  
          if (qPos != -1)
              return window.location.href.substr(qPos);
  
          return window.location.href.substr(hashPos);
          }
docs: Extracts the fragment identifier value.