Beefing up the server cannot improve client side code. Jquery is quite slow, nice, but quite slow. Sometimes writing out those 8 lines can make your code literally 400 times faster.(source : http://vanilla-js.com/) So yes if performance is a concern, you might want to look at writing it yourself.
Specifically in cases where other optimizations (caching, beefier servers, faster SQL, SSDs vs HDDs, etc) didn't help more?