Small JavaScript to retrieve location