function build(item, className, addToggle) {
  var div = document.createElement('div');
  div.setAttribute('class', className);

  for (i=0; i<item.length; i++) {
    div.appendChild(buildListButtons(item.item(i), addToggle));
  }
  return div;
}
// addToggle: boolean stating whether to add toggle sublist functionality
boolean stating whether to add toggle sublist functionality
boolean stating whether to add toggle sublist functionality
function build(item, className, addToggle) {
  var div = document.createElement('div');
  div.setAttribute('class', className);
  for (i=0; i<item.length; i++) {
    div.appendChild(buildListButtons(item.item(i), addToggle));
  }
  return div;
}
function build ( item , className , addToggle ) { var div = document . createElement ( 'div' ) ; div . setAttribute ( 'class' , className ) ; for ( i = 0 ; i < item . length ; i ++ ) { div . appendChild ( buildListButtons ( item . item ( i ) , addToggle ) ) ; } return div ; }
addToggle: boolean stating whether to add toggle sublist functionality
addToggle : boolean stating whether to add toggle sublist functionality