code: function formatHash(hash, bRemoveId){
  			var sRes = hash, iSharpIndex = hash ? hash.indexOf("#") : -1;
  
  			if (iSharpIndex === 0) {
  				sRes = sRes.slice(iSharpIndex + 1);
  			}
  
  			if (bRemoveId) {
  				sRes = sRes.replace(rIdRegex, "");
  			}
  
  			return sRes;
  		}
docs: This function removes the leading # sign if there's any. If the bRemoveId is set to true, it will also remove the unique
  id inside the hash.
  
  @private