its used in a closure
```
  function getSrcForTemplate(templateName) {
    var currentPattern = templatePatterns.filter(function(obj) {
```