This:

```
        if (!newstate) {
            $statusOverwrite.text(Strings.STATUSBAR_INSERT);
        } else {
            $statusOverwrite.text(Strings.STATUSBAR_OVERWRITE);
        }
```

 can be simplified to:

```
        $statusOverwrite.text(newstate ? Strings.STATUSBAR_OVERWRITE : Strings.STATUSBAR_INSERT);
```