timeago.js
timeago.js is a tiny(2.0 kb) library used to format dates
...Avoid timestamps dated "1 minute ago" even though the page was opened 10 minutes ago; timeago refreshes automatically. You can take full advantage of page caching in your web applications, because the timestamps aren't calculated on the server. Very tiny(less than 2kb), and has no dependency, e.g. jQuery.