updated from phonegap 1.9 to 2.4