title: Load JQUery Mobile before php executes
body: <p>I am developing a JQuery mobile web app and I am having some problems with the format after executing 
      $('#someId').replaceWith(php var);</p>
  
  <p>The problem, I think, is that as this is executed before the JQuery Mobile libraries are loaded I get a crappy format when I replace.</p>
  
  <p>Can anyone think on something that could help?</p>
  
  <p>Thank you very much!</p>
  
  <p>UPDATE:</p>
  
  <p>I'm quite new to PHP. What I want to do is to have several variables with the div html code in a way that when I click any button I don't have to refresh the page, just to refresh the div. This data is comming from an external database, so I need to do it with php... any ideas??</p>