removes directives partial
removes script tag including directives partial