Write to global scope or window