Added Pure JavaScript hasClass, addClass, removeClass, toggleClass functions