change from phonegap 2.5.0 to 3.1.0