Use $.getJSON for more reliable JSON parsing