Javascript toggling of button active class