changed positioning of injected scripts