Locations sample for PhoneGap 3.0