You can replace both of these lines with just:
`instance._chatVideoCtrlButtonsNodes.fullScreen.replaceClass('on', 'off');` (if the `on` css class doesn't exist on the element, it will still add the `off` class).