* fixed undefined variable bug in toggle js