Added JSON-aware AJAX methods