Simple Ajax Api on top of jQuery Ajax