Fixed problem with missing Window class in some browsers