Fixing user agent issues/conflicts with Cordova