let isGlobal = $w().global; // true
top of page
bottom of page