Using JS is marginally acceptable. What grinds my gears is a) using it for things that can be done just as well with HTML/CSS, for much lower resource use, and b) using off-the-shelf JS libraries with a rabbit hole of nested dependencies, without making any attempt to audit them.