Update WebMIDIAPI.js

Changed the MIDIAccess function statement to a function expression since it's already declared at the topmost var statement.

Minor code adjustments and spacing cleanup.