Javascript is good when you need interactivity and need it done snappy and easily integrated without having to refresh your tab three hundred times for every post, reply, like, etc...
In this case it's.. a bit questionable as to why it was added when they already had a server side generation of this all done? Shrug...