Ember.Handlebars.helper 'formattedTime', (time) ->
  new Handlebars.SafeString $.timeago(time)

Ember.Handlebars.helper 'formattedTime', (time) ->
  time ||= new Date()
  new Handlebars.SafeString $.timeago(time)

Set timeago to current time if no time is given
Set timeago to current time if no time is given

When objects are initially created by ember, they don't have a
'createdAt' attribute until the promise resolves. new Date() will result
in the same markup, so the user won't see a difference when the app
receives the server response.
