(function() {
  'use strict';
  function initialize() {
    var element = dom.getElement();

    // sideView
    sideView.element({
      sidePanel: element.sidePanel,
      divider: element.divider,
      dividerIcon: element.dividerIcon,
      mainPanel: element.mainPanel
    });
    var sideViewState = dom.loadData('side-view-state') || 'open';
    sideView[sideViewState]();
    sideView.on('change', function(event) {
      dom.saveData('side-view-state', event.state);
      pathContainer.size(board.size());
      board.resetTouchScroll();
    });

    // searchInputView
    searchInputView.element(element.searchInput);
    searchInputView.on('input', lib.util.debounce(sideView.updatePieceListView, 1000 / 60));

    // template
    pieceListView.template(element.pieceListItemTemplate);
    piece.template(element.pieceTemplate);
    port.template(element.portTemplate);

    // pieceListView
    pieceListView.element(element.pieceList);
    pieceListView.on('dragend', function(event) {
      var localPoint = board.pageToLocal({x: event.pageX, y: event.pageY});
      if (localPoint.x >= 0 && localPoint.y >= 0) {
        var p = piece.create(event.pieceSrc);
        p.label(event.pieceLabel);
        p.position(localPoint);
        p.updatePosition();
        board.append(p);
        recentryUsedPieceList.add({src: event.pieceSrc});
        sideView.updatePieceListView();
      }
    });

    // pieceList
    pieceList.load(dom.loadData('piece-lists'), function() {
      recentryUsedPieceList.update();
      sideView.updatePieceListView();
    });

    // pieceListManager
    pieceListManager.element({
      button: element.pieceListManagerButton
    });

    // drag connector handle
    connectorHandle.element({
      mainPanel: element.mainPanel
    });

    // path container
    pathContainer.element(element.pathContainer);

    // board
    board.element({
      mainPanel: element.mainPanel,
      board: element.board
    });

    // board event
    boardEvent.element({
      mainPanel: element.mainPanel,
      board: element.board
    });
    boardEvent.loadURLHash();
  }

  initialize();
})();
@@ -334,19 +334,17 @@
 ate'
-) %7C%7C
+,
  'open'
+)
 ;%0A  

Set default value of side view state