In JQuery mobile script, links will be treated to use Ajax when possible. That's why you may find out that your links on your page suddenly do not work when you place a JQuery mobile script into your html page. To fix this issue you will need to include a data attribute rel="external" or data-ajax="false" for each link in your html page.
You can easily include this script to solve this issue.
$("a").attr("data-ajax", false); // or alternatively you can use this as well. $("a").attr("rel", "external");