Updated ajax call to get api key to actually return json