Dynamically changing header text depending on URL in WordPress html page

I got to work. I don’t know if it’s the most efficient method, but this is what I did: Also, for whatever reason I couldn’t get it do display my header (custom page title) when I declared the variable within the same script. Any feedback is greatly appreciated, but please keep in mind I’m an old Cobol programmer. I have trialed and errored my way through this website.

<script type="text/javascript">
var myurl=document.URL;
</script>

<script type="text/javascript">
if (myurl == "http://URL/alabama-jumpers/#!/~/orderConfirmation")
    {null}
else    
if (myurl == "http://URL/alabama-jumpers/#!/~/orders/offset=0") 
    {null}
else
    {document.write("<span style=\"color: #5d0800; font-family: 'Marcellus SC'; font-size: 32px; font-weight: 300; text-align: left;\">Alabama Jumpers<\/span>")}
</script>