express.js's response.type() instead of manually setting the Content-Type header