getLocation function created to use HTML5 api geo location.