Fix to getLocation in panthera.js