Arrow direction using geolocation, compass and accelerometer phonegap plugins