fix for safari5: use window instead of Window

Using "Window" with a capital W triggers an error in safari 5 (maybe others, I haven't tested). The error being "ReferenceError: Can't find variable: Window"