Update WebMIDIAPI.js

I have cleaned up some of the code to minimize JSLint 'error' messages. I hope the original author would adhere to JSLint's coding style to enhance the code's readability.
No, I'm not really a big fan of Crockford :)