fix issue on phonegap with inapp browser