function(token) {
    var filter = {
      val: '', 
      opts: [], 
      type: 'filter'
    }
    
    token.filters.push(filter);
    return filter;
  }
function(token) {
    var filter = {
      val: '', 
      opts: [], 
      type: 'filter'
    }
    
    token.filters.push(filter);
    return filter;
  }
function ( token ) { var filter = { val : '' , opts : [ ] , type : 'filter' } token . filters . push ( filter ) ; return filter ; }
Filter factory
Filter factory