fixing example to use `setTimeout` to work around weird playback bug