best practice phonegap architecture

view story

http://stackoverflow.com – I'm trynig to work on a phonegap applicaion but I don't know realy how to build the architecture. I try a kind of MVC model with a big js for a controller, a js file with ajax request to get infos from the server (model) . For the views I use a main layout with a header and a head. I update my content using load in JQuery. I have some problems using this system for exemple the previous button close the application because I always using the same page. When I rotate my screen I come back to the first screen because the page is refresh. I'd like to know if you have some solutions or some co (HowTos)