Fix adapter in iOS5

Compare instanceof window.constructor instead of Window
Merge pull request #1 from mordaroso/patch-1

Fix adapter for iOS5