Ajax wrapper that handles JSON data exchange according to the non-official JSend spec