fix(waveform): make script compatible with strict mode