changed getJSON() to ajax({dataType: 'json'…})