for phonegap3