updated to phone gap 3.1