JS for loading location instead of hardcoding it