finish event

Changed the firing of wavesurfer finish event.