for PhoneGap build