Does Javascript have abstractions which would provide (MediaElement) API for AudioBuffer?
This would help to have AudioBuffer as a drop-in replacement for HTML5 audio element.
You would not need to change the old playback code and event handlers
You would still get access to effects, FFT data and such