insert script inside a span