Update waveform.core.js