This demonstrates a CPU emulator and audio synthesis software library named Game Music Emu that was originally written in C++ and compiled to JavaScript, outputting audio through JavaScript's Web Audio API. This should work in Chrome, Firefox, and Safari.
For more information on the technical aspects of this experiment, see this blog post.
This experiment should work equally well in the desktop versions of the following web browsers: Mozilla Firefox, Google Chrome, and Apple Safari.