add coffeescript gem and correct dependency injection