I'm using ajax to load a page

```
$.get(url, function(content){
   //ajax content
});

```

on the main page I have my header file included that has global stylesheets and javascript libraries

I have the same include file in the 2nd page i'm loading in via ajax. Dependently these pages work great.

My JS is making html markup on the fly in the 2ns page, my problem is that when I load in the 2nd page into my main page the global JS isn't being applied to the 2nd page.

So now my markup isn't being generated.

How can I use an ajax call to also apply the JS being pulled?

My theory was that since the JS is being loaded when the DOM is ready maybe thats why i'm not able to have it load using AJAX?