First, you should
console.log(data), to get the structure. You can also do this by looking at the Network Tab in Chrome.
After you know the structure of
data, you can use the value.
For example, then
alert(data.location), to alert the actual value.