Changed to http due to mixed content blocking.
Rewrote .getJSON request for geonames api for .fail scenario (in case of mixed content https vs http).
Added flask-cors and requests module to enable Cross-Origin Resource Sharing (https with http api call)