[SOLVED] Problem with JQuery Dynamic Header

[SOLVED] Problem with JQuery Dynamic Header

Hi.  I've been racking my head with this for too long now, and was wondering if someone could point out my mistakes.  Basically, I have two pages that are identical except for a string in the content.  There is a header, that I want to dynamically display the page title.  For the first one, it should say "Overview" on the header bar when it loads, and the second page should say "Accounts" when it loads.  What happens, is that the page that get's loaded first will display the header correctly, the one I click to second, will not display the header with the proper text at all.  I've only included one of these pages, as they're identical except for a string or two:

***** navMenu.html *****
  1. <div data-role="header" data-theme="a" >
  2. <a href="#nav-menu-panel" data-icon="grid" data-iconpos="notext">Menu</a>
  3. <a href="#login-form" data-icon="in" data-iconpos="notext">Log In</a>
  4. <h1 id="pageTitle"></h1>
  5. </div><!-- /header -->
***** appOverview.php *****  
There is a second page identical to this that I didn't include here.  The only difference is in the content, it says "Accounts" and the header <h1> should be "Accounts" instead of "Overview"
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jcBook</title>
  7. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
  8. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  9. <link rel="stylesheet" href="style/swipe-page.css" id="demo-style">
  10. <link rel="stylesheet" href="style/default.css" >
  11. <script>
  12. // Bind to "mobileinit" before you load jquery.mobile.js
  13. // Set the default transition to slide
  14. $(document).on( "mobileinit", function() {
  15. $.mobile.defaultPageTransition = "slide";
  16. });
  17. </script>
  18. <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
  19. <script src="js/swipe-page.js"></script>
  20. </head>
  21. <body>

  22. <div data-role="page" id="appOverview" class="demo-page ui-responsive-panel" data-dom-cache="true" data-theme="a"  data-next="appAccounts">

  23. <?php include("navMenu.html"); ?>
  24. <div data-role="content" data-theme="e">
  25. <p>Overview</p>
  26. </div><!-- /content -->

  27. <div data-role="footer" >
  28. </div><!-- /footer -->
  29. <?php include("navMenuPanel.html"); ?>
  30. <script>
  31.                         /***** This is where it should update the <h1> in the "NavMenu" ******/
  32. $(function() {
  33. var pTitle = "Overview";
  34. $("#pageTitle").text(pTitle);
  35. });
  36. </script>

  37. </div><!-- /page -->
  38. </body>
  39. </html>