Fix window.maps push
Add internal setting for putting initialization function in global scope