Add error logging for malformed locale JSON
Use $.getJSON to avoid manual JSON parsing