anchor.diff:        <!-- end submission loop -->
     </table>
   
  +  <%-- JS target for the results table --%>
  +  <div class="collection-table" id="${tableContainerId}"></div>
  +
  +  <script type="text/javascript">
  +    (function($) {
  +        var $table = $('#${tableContainerId}');
  +        var query = {
  +            select: ["primaryIdentifier", "score", "scoreProtocol.name"],
  +            from: "${fc.key}",
  +            joins: ["scoreProtocol"],
  +            where: {"submissions.DCCid": "${object.dCCid}"}
  +        };
  +        var disableTable = function() {
  +            $('.submission-features-count a').addClass('no-results').unbind('click');
  +            $table.remove();
  +        };
  +        if (!${fc.value}) {
  +            disableTable();
  +        }
  +        $(function() {
  +            $SERVICE.fetchModel(function(model) {
  +                var table = model.classes["${fc.key}"];
  +                if (table.fields['chromosomeLocation'] && table.fields['chromosome']) {
  +                    query.select.push('chromosome.primaryIdentifier');
  +                    query.select.push('chromosomeLocation.start');
  +                    query.select.push('chromosomeLocation.end');
  +                    query.select.push('chromosomeLocation.strand');
  +                    query.sortOrder = ['chromosome.primaryIdentifier', 'chromosomeLocation.start'];
  +                }
  +                query.select.push('submissions.DCCid');
  +                query.select.push('submissions.experimentalFactors.name');
  +                query.joins.push('submissions.experimentalFactors');
  +            });
  +            $('.submission-features-count a').click(function(e) {
  +                var $link = $(this);
  +                e.preventDefault();
  +                $table.imWidget({
  +                    type: "table",
  +                    url: window.location.host + ':' + window.location.port + "/${WEB_PROPERTIES['webapp.path']}",
  +                    token: "${PROFILE.dayToken}",
  +                    error: FailureNotification.notify,
  +                    query: query,
  +                    events: LIST_EVENTS,
  +                    properties: {pageSize: ${pageSize} }
  +                });
  +                $link.unbind('click').click(function(e) {
  +                    e.preventDefault();
  +                    $table.slideToggle('fast');
  +                    return false;
  +                });
  +            });
  +            return false;
  +        });
  +    }).call(window, jQuery);
  +  </script>
  +
   <%-- OVERLAPPING GENES
   
   For some features is not reasonable to look for overlapping genes, list of
  
positive.code: <html:xhtml />
  
  <style type="text/css">
  
  input.query {
      -moz-background-clip: border;
  
negative.code: </h3>
    <table cellpadding="5" cellspacing="5" border="0" class="resultstables" width="100%">
    <thead>
      <tr>
          <td>Feature type</td>
          <td align="right">View data</td>
          <td colspan="4" >Export</td>
          <td>Action</td>
      </tr>
  </thead>
  <tbody>
  <%--
  