set correct mimetype for JSON output