code: function _getInteractivityFields (columns) {
    var fields = columns.map(function (column, index) {
      return {
        name: column,
        title: true,
        position: index
      };
    });
  
    return {
      fields: fields
    };
  }
docs: Scope functions 
  Transform the columns array into the format expected by the CartoDBLayer.