working with phone gap