code: function(options) {
        var t = this;
  
        // Build the template from the individual templates
        if (!tourTemplate) {
          tourTemplate = Template.fromDOM('#nm-template-TourView');
          lineTemplate = new Template({
            text: '<a class="nm-tv-page {{isCurrent}}" data-index="{{index}}" href="{{url}}" title="{{title}}"><div></div></a>'
          });
        }
  
        // Determine the current tour page index
        t.pages = t.model.get('pages'),
        t.pageIndex = localStorage.tourPageIndex;
        if (typeof t.pageIndex === 'undefined') {
          // Compute the page index based on this URL
          var url = location.href.toString().substr(location.origin.toString().length);
          t.pageIndex = 0; // Default to first page
          for (var i=0, l=t.pages.length; i < l; i++) {
            var page = t.pages[i];
            if (url === page.url) {
              t.pageIndex = i;
              break;
            }
          }
        }
        else {
          delete localStorage.tourPageIndex;
          t.pageIndex = parseInt(t.pageIndex);
        }
  
      }
docs: Constructor