core: jQuery (restore toggleVisibility function)