attributes: Add a toggleClass method