Use express res.type instead of setting manually