i actually don't know what happens in PhoneGap on a window reference.  We have/had some code that used to check for the window.location or hostname. can you double check to make sure we don't need to do anythign special or at least check for `window` or something like that