Added IBM-MODIFICATIONS and check for PhoneGap var