Updated to PhoneGap 2.7 compliance.