JSFiddle - React, Tailwind, and code Playground
HTML
<h1 id="theH1">Test</h1>
JavaScript
$(document).ready(function() {
var pathname = window.location.pathname;
if($(pathname +"*.us") || $(pathname +"*.com") || $(pathname +"*.ca"))
{
$("#theH1").text("United States");
}
});