instead of this while loop id prefer to use 
```js
$('#log tr:gt(2)').hide()
```
http://api.jquery.com/gt-selector/