private static void ExecuteOptionalScript(Script script, Context cx, Scriptable executionScope) { if (script != null) { script.Exec(cx, executionScope); } }