Fix for mute function, moved stop eventListener set up away from function,created gainNode