title: Custom node icons not working in Fancytree
body: <p>I've been using "Fancytree" in a project I'm working on and have been largely happy with it until today.  I need to display a different icon on certain nodes within the tree and have, so far, been unable to get them to show up on the tree.</p>
  
  <p>I'm specifying the custom node icon in the JSON string below which I use to load the tree:</p>
  
  <pre><code>[{
      "title": "Inventory",
      "key": "DocFolders/1026",
      "folder": true,
      "data": {
          "icon": "LockedFolder.gif",
          "isLocked": true
      }
  }, {
      "title": "Telemetry",
      "key": "DocFolders/1027",
      "folder": true,
      "data": {
          "icon": "LockedFolder.gif",
          "isLocked": true
      }
  }, {
      "title": "Well Documents",
      "key": "DocFolders/1028",
      "folder": true,
      "data": {
          "icon": "LockedFolder.gif",
          "isLocked": true
      },
      "expanded": true,
      "children": [{
          "title": "4-13 Spectrum Core PG&amp;E Data.xlsx",
          "key": "SpectrumDocs/961"
      }]
  }, {
      "title": "Well Photos",
      "key": "DocFolders/1029",
      "folder": true,
      "data": {
          "icon": "LockedFolder.gif",
          "isLocked": true
      }
  }]
  </code></pre>
  
  <p>The following is the javascript code that loads the tree:</p>
  
  <pre><code> $('#locDocTree').fancytree({
      source: fldrObj,
      imagePath: 'skin-win8',
      activate: function (event, data) {
          if (data.node.folder) {
              $('[id$=txtSelFldrKey]').val(data.node.key);
              $('[id$=txtDownloadDocId]').val('');
          }
          else {
              $('[id$=txtDownloadDocId]').val(data.node.key);
              $('[id$=txtSelFldrKey]').val('');
          }
      }
  });
  </code></pre>
  
  <p>The "LockedFolder.gif" file is in the "skin-win8" folder, and if I take out the "icon": "LockedFolder.gif" from the JSON, the tree renders fine with the default images.  When the icon property is specified, the tree still renders, but with no image for the folder icons.</p>
  
  <p>The following are the referenced script &amp; css files in the page head.</p>
  
  <pre><code>&lt;link href="fancytree/skin-win8/ui.fancytree.css" rel="stylesheet" type="text/css"&gt;
  &lt;script src="Scripts/json2.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="Scripts/jquery-2.1.1.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="Scripts/jquery-ui-1.10.4.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="fancytree/jquery.fancytree.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Seems like this should be simple, but turning out to be a brain teaser for me... </p>
  
  <p>Well, it's a few hours later and I've managed to answer my own question.  Feels pretty silly, but so often these things come down to something like this.  Turns out my problem was in the "imagePath" option for the tree.  Path name MUST include a following forward slash.  So the fix was to make the imagePath be "skin-win8/".  Works fine after that.</p>