Wavesurfer contains deprecated functions - updated to latest version using canvas