Added shim for phonegap on desktop