PhoneGap Compass and Connection tutorial with JQuery Mobile are updated with source code.