preparing for phonegap