updated version of WaveDrom.js