title: Get relative path of the page url using javascript
body: <p>In javascript, how can I get the relative path of the current url?</p>
  
  <p>for example <code>http://www.example.com/test/this?page=2</code></p>
  
  <p>I want just the <code>/test/this?page=2</code></p>