Update midi.js

renamed 'map' to 'add' and renamed 'assign' to 'map'