Example of a compass app with phonegap