Sounds like you need to read about scripting in JQM. Number one problem people have with JQM is not using scripts correctly. The scripts should be the exact SAME on EVERY page in your site. They will only get loaded ONCE (first page user visits). So in your case, they load on refresh because that is now the first page the user visits.