Use routeInfo.caption for document title

The caption of a route was never used anywhere. It is now used for
title.