anchor.diff:  <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
   <%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>
   <%@ taglib uri="/WEB-INF/functions.tld" prefix="imf" %>
  -<link rel="stylesheet" type="text/css" href="http://cdn.intermine.org/js/intermine/apps-c/pathways-displayer/0.0.1/pathway-displayer.css">
  +
   
   
   <!-- minePathwaysDisplayer.jsp -->
  
positive.code: 
      <div class="header">
        <h3>New Pathways Displayer</h3>
        <p>This will display pathway data from other mines.</p>
      </div>
  
      <div id="pathwaysappcontainer"></div>
  
negative.code: 
  
  <script>
  
  (function(){
  
    var $ = jQuery;
  
    console.log("STARTED");
    var paths = {js: {}, css: {}};
  
    <c:set var="section" value="pathways-displayer"/>
  
    <c:forEach var="res" items="${imf:getHeadResources(section, PROFILE.preferences)}">
      
        paths["${res.type}"]["${res.key}".split(".").pop()] = "${res.url}";
    </c:forEach>
  
    console.log(JSON.stringify(paths, null, 2));
  
  
    var imload = function(){
      intermine.load({
        'js': {
            'Q': {
              'path': paths.js.Q
            },
            'jQuery': {
              'path': paths.js.jQuery,
              'test': function(){
                if (+($.fn.jquery.split(".")[0]) < 3) {
                  throw "Version error.";
                }
              }
            },
            'Backbone': {
              'path': paths.js.Backbone,
              'depends': ['_', 'jQuery']
            },
            '_': {
              'path': paths.js._
            },
            'MyFirstCommonJSApp': {
              'path': paths.js.MyFirstCommonJSApp,
              'depends': ['Q', 'Backbone']
            }
        },
        'css': {
          'pathwaysDisplayerCSS': {
            'path': paths.css.pathwaysDisplayerCSS
          }
        }
      }, function(err) {
  
        if (err) throw err;
  
        friendlyMines = {};
  
        <c:forEach items="${minesForPathways}" var="entry">
          friendlyMines["${entry.key.name}"] = "${entry.key.url}";
          </c:forEach>
  
          friendlyMines['${WEB_PROPERTIES["project.title"]}'] = $SERVICE.root;
  
          require('MyFirstCommonJSApp')(
        {
               
                friendlyMines: friendlyMines,                        
                gene: "${gene.primaryIdentifier}",
                target: "#pathwaysappcontainer"
        });
  
      });
    };
  
    try {
  
      imload();
  
    } catch (error) {
      $('#pathwaysappcontainer').html(
        $('<div/>', {'text': 'This app requires jQuery 2.x.x', 'style': 'padding-left: 14px; font-weight: bold'})
      );
  
      $('#mine-pathway-displayer').addClass("warning");
    }
  })();
  
  
  
  
  
  