Maybe the reason why people think JS to be slow, is due to the fact that JS is an interpreted language. But even then, the speed at which your JS code is executed depends on your hardware and JS interpreter in your browser. So for people with ancient hardware and browsers, JS may look slow.
All you need is right before you, at no cost. Happy coding!