set body of response rather than echo and die on ajax requests