Update WebMIDIAPI.js

Cleaned up a few if statements (added curly braces to make the block clear). Also changed a few '!=' to '!=='. I wish the whole code adheres to JSLint's recommendations.