To fix this I put a time delay on the javascript to make sure the component was fully rendered first. This fully fixed it.
TB.render('component_3',function(){
function run(){
$('routing-info-string').each(function(){
$(this).text($(this).text().replace(/.0000000000/g,''));
console.log("routing-info-string script run");
})
console.log("component_3 rendered")
}
setTimeout(run,30);
});