A page switching framework for you Phonegap app