title: JavaScript: get original query string when url is rewritten
body: <p>My page's url is rewritten like so, </p>
  
  <blockquote>
    <p>www.test-me.com/book-cat-white.HTML</p>
  </blockquote>
  
  <ul>
  <li>book is book.php  </li>
  <li>cat  is animal=cat  </li>
  <li>white is color=white  </li>
  </ul>
  
  <p>The original URL is </p>
  
  <blockquote>
    <p>www.test-me.com/book.php?animal=cat&amp;color=white</p>
  </blockquote>
  
  <p>With PHP, I can get the values using <code>$_GET</code>, e.g. <code>$_GET['animal']</code>.  How can I do the same in JavaScript? Is there a variable I can access that will return the query string?</p>