You can access the ANSI global as `ANSI`, no need for `window.` here imho.