for phonegap