phonegap api 1