Put all the code for your site into a single JS include file and include it in the <head> of every page; this way all the code for your site will be available whether the user refreshes or deep-links into the site and when they navigate around using jQuery Mobile's AJAX linking.