/**
* A Promise based XHR function to get JSON data from external APIs
*
* Browser compatibility: Chrome, Edge, Firefox, Opera, Safari
* Internet Explorer does not support the Promise object natively
*
* Inspired by Chris Ferdinandi's atomic plugin:
* @see https://github.com/cferdinandi/atomic
* @see https://gomakethings.com/promise-based-xhr/
*
* @param {String} url - The request URL
* @param {Object} options - A set of options for the request
* @return {Promise} - The XHR request Promise
*/
function getJSON (url, options) {