I don't understand why you rename this class ?
Can you just keep .active in the css ?