Request, respond, and react to ajax data in a more uniform way.