You don't.
I'm a web developer who has actually tried to implement a simplified mixer (not even a full daw, just a mixer of pre-selected synths edit: tracks), and it is an incredibly difficult task. Javascript just isn't a good language for time-sensitive tasks like syncing audio, especially...