basic fix and rename for the general toggle js