adjusted coffeescript compile directive