Based on prettyDate by John Resig (MIT license)
Date.ago