title: angularjs filter not compiling correctly with coffeescript
body: <p>I used try coffeescript and it compiles correctly but in my app I installed the filter using yo:angular filter capitialize and it created the file correctly but when I serve the app I get a typeerr because it is missing a ')' before .filter.</p>
  
  <pre><code>'use strict'
  
  angular.module 'someapp'
    .filter 'capitialize', -&gt;
      (input) -&gt;
        'capitialize filter: ' + input
  </code></pre>
  
  <p>compiles to:</p>
  
  <pre><code>(function() {
    'use strict';
  
    angular.module('someapp'.filter('capitialize', function() {
      return function(input) {
        return 'capitialize filter: ' + input;
      };
    }));
  
  }).call(this);
  </code></pre>