phone gap class