add detect for web midi api
couple fixes to plugin.js