Working example of PhoneGap Geolocation using code from Cordova docs