Create geolocation.js

This will help you how to get Geolocation