changing API call to getJSON