change to active state js