PhoneGap version and TryCatch