Add functional code to fetch location and display in a div