toggle js cleanup