Update phonegap to 3.1.0