Loading Jquery Scripts into a single page

Loading Jquery Scripts into a single page

Hey guys, 
I have two Jquery scripts , I need to load them into a single page
The scripts work fine separately , but when I try to load them into single page, only one of them works

this is my code for loading the two scripts:
  1. $(document).ready(function(){
  2.        //Load the second page and second page script
  3. $('#firstContainer').load('secondPage.html');
  4. $.getScript("js/secondPageScript.js");

  5.        //Load the thirdpage and third page script
  6. $('#secondContainer').load('ThirdPage.html');
  7. $.getScript("js/ThirdPage.js");
  8. });