add @Miranet's fix for issue #11

https://github.com/mudcube/MIDI.js/issues/11