Write time.coffee and update tests