A MIDI file reader and synthesiser in Javascript