code: function () {
  
  		var href = window.location.href,
  			items = parsedItems(),
  			id, index;
  
  		// get window 'id'
  		if (href.indexOf('#') > -1) {
  			id = window.location.hash.replace('#', '');
  		} else {
  			id = window.location.pathname.split('/').pop().replace(/\.[^/.]+$/, '');
  		}
  
  		// In case the first menu item isn't the index page.
  		if (id === '') {
  			id = 'index';
  		}
  
  		// find the window id in the items array
  		index = (items.indexOf(id) > -1) ? items.indexOf(id) : 0;
  
  		// set the matched item as active
  		fabricator.dom.menuItems[index].classList.add('f-active');
  
  	}
docs: Match the 'id' in the window location with the menu item, set menu item as active