title: Remove URL parameters without refreshing page
body: <p>I am trying to remove everything after the "?" in the browser url on document ready. </p>
  
  <p>Here is what I am trying:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
  var url = window.location.href;
      url = url.split('?')[0];
  });
  </code></pre>
  
  <p>I can do this and see it the below works:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
  var url = window.location.href;
      alert(url.split('?')[0]);
  });
  </code></pre>