Best way to add/remove class to menu element using pure JavaScript : JQuery code is very simple: 

    $('.nav-menu').on('click','li', function(){
        $(this).addClass('selected').siblings().removeClass('selected');

it adds `selected` class to selected menu element and removes that class from all other elements.
Best and shortest way to do this with pure JavaScript?