define polyfills for global constructors as vars

example: var Promise = …; not window.Promise = …;