refactored cross() to use feature detection rather than $.browser.webkit

Hit an error playing with popups and jQuery-1.9.1 where w2utils:cross() failed with a null reference to $.browser.

Since jQuery no longer supports $.browser (deprecated 1.3, removed 1.9), refactored cross() to use feature detection instead.