adding sample example for phone gap