If we change the type to JSON, then the response is a JSON object and not a plain text that is required to be parsed to JSON. So after changing this, we could simplify the complete function (changed to `done(function (response) {})`) and know that `response` is already a JSON object.