fix #4 gps tracking and cordova3