update Midi js to work with newer apis