Add ability to configure response type in Ajax calls.