Well, that was funny. I worked last time with Vanilla JS about a few months ago)
[ findBestMatch function placed in "app.js", tabs functionality into "tabs.js" ]
1. I decided to make elements from "radio-system" without BEM-classnames. I think it doesn't require it.
2. I know that placing block-element inside <label> is not a good idea, but in usual cases we use JS for a systems like this, right?)
That's all, have a nice day
------------- /> フ
-------------| _ _ |
----------/` ミ_xノ
--------/ |
-------/ ヽ ノ