Switched from $.getJSON() to $.ajax()