How to get user location in the browser using JavaScript?