added function to inject script & noscript