prepare for phonegap