title: Jquery: conditionally add class if the url contains a specific hash value
body: <p>How can I add a conditional statement that says something like</p>
  
  <pre><code>if(window.location.href.indexOf("#/brandpartners"))
      {
      $("#brandpartners").addClass("specialbrand");
      }
  </code></pre>
  
  <p>The hash seems to break the statement. Is there a better way?</p>