midiparse.js: Overflow problem