function setCors(el, url) { if (url.indexOf(‘flightcdn’) !== -1) { el.setAttribute(‘crossorigin’, ‘anonymous’); } return el; } function lazyLoad(type, refresh) { type = (typeof type !== “string”) ? “all” : type; if ((type === “all” || type === “ads”) && typeof lazyload_ads !== “undefined”) for (var x = 0; x < lazyload_ads.length; x++) { var rand = Math.floor(Math.random() * 10E6); if