mixing both in different pages didn't work, adding the phonegap code to the jquery mobile