remove script tag from template