Set Content-Type to JSON for JSON responses

Set this header:
   Content-Type: application/json so when jQuery loads the data from the AJAX
it converts it to an array of objects. Otherwise there is an error when
accessing the name property.