Actually it uses a small Flash app to generate the sound (see the News section at the bottom of the page). I wonder if data URLs could be used like that though?
https://wiki.mozilla.org/Audio_Data_API
I've been meaning to write a JSNES prototype for them.
http://acko.net/files/audiosynth/index.html
Edit: It's not exactly as "dynamic" as I thought. The different samples are generated once and then played in a loop. So the audio data is not generated in real time, but it is generated.