jQuery Mobile not formating the .append() created List

jQuery Mobile not formating the .append() created List

I am trying to build jQuery mobile website by looping through XML document and creating master list and individual pages... However the jquery.mobile-1.4.5.min.js script is running before page is built so the <li> are being added, but jQuery mobile isnt formatting is not right.

Is there a way to call the jQuery mobile after the ajax loop is finished?