check inject_script field before calling _InjectScripts