BAMPFA-76: Port XDB full title computation algorithm to javascript.