Used $.ajax instead of $.getJSON