Porting mobile app to jQuery Mobile