added hasBEMClass and toggleBEMClass