Ad tag and trying to use append / appendTo instead of document.write - not working
===

I did alot of searching and couldn't locate an answer. This is the code

    <div id="uniquediv"></div>
         <script language="JavaScript">
                (function($){
                   var srcitem = 'http://someURL_to_an_AD_tag';
                       $('<script/>', {
                          type:    'text/javascript',
                          src:     srcitem
                       }).appendTo("#uniquediv");
                })(jQuery);
         </script>

No matter what I do (tried many diff things), the js code falls outside the "uniqueid" div. I need it IN the div because the div has padding and I need to retain that since the js I am including is an ad and I need to have padding around it. 