$(function(){ if($('body').is('.PageType')){ //add dynamic script tag using createElement() OR //call specific functions } });