waveform.js: pause function