Simply define as an object literal instead of re-accessing `window.ANSI` repeatedly.

```js
window.ANSI = {
    color_map: {
        red: "\u001b[31m"
        ..
    ..
};
```
Also, use camelCase name style for keys `color_map` and `highlight_text` etc. per our style guide.