Console log count doesn't update

This only logs "1" once for now:
```
for (var i = 0; i < 10; i ++) {
  console.log(1);
}
```
The upstream protocol sends a special event when the count of the lat log gets updated apparently.
Here's a tentative fix, but since I basically don't know the webconsole code at all, I would like to get @past's eyes on this PR before continuing any further.