No-Library (pure JS), HTML, CSS, JavaScript
Change class name on click in jQuery
Replace yar with event, and remove from the parameter list