Getting user agent from req.headers