isPhoneGap is a simple script to check whether the app is loaded in a PhoneGap app or in a web app