Adding script directive