Those lines are importants. 
This take care of recomputing truncation on resize. 
And need the lines to be displayed.

So i would just add a condition 

```javascript
  if (!playing) {
    var texts = document.querySelectorAll('.details');
    for (var i = 0; i < texts.length; i++) {
      textTruncate(texts[i]);
    }
  }
```