Fixed javascript toggling error yay