update for phonegap 3.0