Well, I was thinking more along the lines of providing a service that takes care of all the note-sample mapping for you. You could either specify instruments/effects that you want via script tag url params, or perhaps using some kind of loading library (Google Web Fonts offers both of these methods). The bottom line is that you would be provided with patchable Instrument and Effect objects that expose a simple interface for triggering/releasing notes and modifying relevant parameters.