JavaScript: addClass, removeClass, hasClass