ClassManager for PhoneGap