I wonder how small the bridge between flashplugin and the underlying OS was to enable easy audio sync. Because other than this, flash and javascript are almost dialect-cousins.
NPAPI doesn't sandbox audio at all. That's part of why Flash can deliver better synchronization and scheduling; it talks to the native OS audio libraries directly.
http://stackoverflow.com/questions/2268276/what-are-the-key-...