Useless call to the window cause the google closure compiler to fail

Useless call to the window cause the google closure compiler to fail