Phonegap Compass Example