Trying to remove the back end from wavesurfer, part 1