Problem in $.mobile.changePage

Problem in $.mobile.changePage

I was using  $.mobile.changePage("sample.html", "slide"); method to load pages and I m trying it along with phonegap. The problem that i m facing is. If I modify the code in html page or else if I give some wrong script in jquery, as expected the $ .mobile.changePage is not working. But after I m clearing my mistakes in jQuery/html pages, $.mobile.changePage still not working. 
After I m doing some zigzag things like deleting application, restarting system its working.

I am trying with try catch too. The jQuery not throughing any error. I have to do any particular thing(clear cookies) something like that for each time while I m testing my application?

Thanx in advance