Web Audio API:Oscillator with pitch and waveform slider

Below is working code that displays an image which can be clicked to turn on and off an oscillator. There are additional pitch and waveform sliders that can be used to modify the oscillator. The image files (on.png & off.png) should be replaced with your own images. The click.wav can either be ignored or replaced with a "click" sound to create a theatrical effect analogous to a switch being "clicked on/off".