title: Programmatically changing page in JQM
body: <p>I have a jQuery Mobile 1.3.0 app with some pages. I have a page (#menyside) in index.html, which I have bound an event to:</p>
  
  <pre><code>$(document).on('pagebeforeshow', '#menyside', function(event){
          // check local storage, and some times do this:
      $.mobile.changePage("otherPage.html", { transition: "slideup"} );
  }
  });
  </code></pre>
  
  <p>I check for some values in local storage, and based on those values I might want to change the page programmatically. This works when I open the app for the first time, but not when I reopen the app (i.e. the document is already loaded in the browser, but it is reloaded)</p>
  
  <p>Am I binding to the wrong event? I tried to look at the events in the documentation but didn't really find something better...</p>