before playing with phone gap