Fixed html, declared wavesurfers as globals