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.
Especially when the 8-line version might need testing in every possible browser out there for quirks and bugs. jQuery's already done the legwork there
Edit:
youmightnotnotneedjquery.com linked in a sibling of this comment explains it better in this googledoc
https://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0Rlh...