Update for phonegap 3.x