Fix adapter for iOS5

In iOS5 I got the strange javascript error: 
```Reference Error: Can't find variable: Window```
Apparently in iOS5 ```window``` has the constructor called ```DOMWindowConstructor```.

Comparing ```instanceof window.constructor``` instead of ```Window```solved the problem.