update ajax library, support for cordova plugin