PhoneGap Compass Application