I would not consider that recommendation to be sound advice. Google crawls sites with a headless version of Chromium and has no issue parsing JS. Webflow’s components rely on JS to various degrees, as well as animations. I have a portfolio of high-performing web properties at the top of the SERPS, and JS is present on almost all.
The only way you could do something to tweak it would be to self-host your project. JS load can be an issue from a performance standpoint. You should avoid loading unnecessary scripts, if possible.