processing for phone gap