Add ajax tools for phonegap webapp