Altered to function as an injected script tag