// Constructor
        public MainPage()
        {
            InitializeComponent();

              phoneGapView.Browser.ScriptNotify += new EventHandler<NotifyEventArgs>(Browser_ScriptNotify);

              // create a location watcher - this is required to ensure that the marketplace certification
              // detects the location capability.
              GeoCoordinateWatcher watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High);

              _browserHelper = new WebBrowserHelper(phoneGapView.Browser);
        }