Wix ignoring JS logic.

After banging my head on this for hours I think I found the issue. It has nothing to do with my logic and appears to be a bug with the expand/collapse functions in Velo - https://www.wix.com/velo/forum/coding-with-velo/expand-collapse-not-working-on-published-site - and, for anyone else looking, it likely affects show/hide functions also.