Trigger change event from button when button toggled class "active"

I added this small correction, in order to be able to track the exact moment when the class "active" has been added or removed