using phone gap 3.1