After a lot of trials and tests and getting my peers involved into the issue. We noticed that the html file was loading only after the scripts that assigned events to the tags.
To fix this I changed the call to:
$("header").load("master.html", function () { });
That allowed for the file to be loaded before any work to be done on it.
For more information:
http://api.jquery.com/load/