Updated Coffeescript template for model