I think this can be written as:

``` javascript
socket.on('alert', div_alert);
```