Update midimap.js

added some error handling if midi can't be loaded, and no longer require value to be passed to map function