Earlier I published an ActionScript utility method that allows you to format the time span between now and the date specified in a "Facebook way".
Now I port it to CoffeeScript.
You can notice that the code is very similar, but thanks to CoffeeScript native string interpolation it is shorter and easier to read and understand!
You are welcome to contribute at https://github.com/skovalyov/time-format!