change Structure for phonegap