WebMidi.js
The WebMidi JavaScript library will help you tame the lower-lever HTML5 Web MIDI API. It will let you send and receive MIDI messages with ease, control instruments with user-friendly functions (playNote, sendPitchBend, etc.) and react to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).