Proper structure for phonegap