+ if ( jQuery.nodeName( elem, "script" ) ) {
+
+ // If scripts are waiting to be executed, wait on this script as well
+ if ( scripts.length )
+ scripts = scripts.add( elem );
+
+ // If nothing is waiting to be executed, run immediately
+ else
+ evalScript( 0, elem );
+
+ } else {
+ // Remove any inner scripts for later evaluation
+ if ( elem.nodeType == 1 )
+ scripts = scripts.add( jQuery( "script", elem ).remove() );
+
+ // Inject the elements into the document