V2.3 error with phonegap API's