turn javascript code into MIDIs