AJAX content in tabs - need js to run on content

AJAX content in tabs - need js to run on content

Hopefully the answer to this is something I have over looked.

The content I am loading into my tabs is html via ajax.
The pages being loaded have javascript (all jQuery) on them as they need to load as independent pages as well.
 These scripts are also in the head of the main (page they are being loaded into) page as some tabs are not loaded by ajax.

How do I get the script to trigger every time the tab / content changes.