Rename window to prevent name collisions

Fixes "Redeclaration of const property" error in IE