Setting up for phone gap