So I’m not on this project yet, but I was able to get the alert dialog by changing your api string to:
var apiCoord = 'https://cors-anywhere.herokuapp.com/http://api.openweathermap.org/data/2.5/weather?lat='+ lat +'&lon='+long + '&appid=c130f198b172e7e12d1aa4d6a4c356e8';