Below is a really nice time ago plugin for jQuery, very similar to what they use here on SO. The problem for me is that it uses this to convert time.
It would be better using both, but it is not necessary to make it dynamic with JS.
In fact, I've only seen this behaviour in Facebook.
Also, are you well aware that the tag is HTML5? It may create a few uncompatibilities.