Updated to play tones from Web Audio API