Update index.js

I added the function to get the geo location. It should display it right after the device is ready message in a dialog box.