This small library is called jsfx. Info on usage and a demo site can be found on its GitHub page.
How does it work?
This lib generates wave files as data URIs and then feeds them to an <audio> element.
Just click on the buttons to play the corresponding sound effects.