removes script tag including directives partial