/* global $ */

(function (window, document, $) {
    'use strict';

    var LiveEditorToolbar = function LiveEditorToolbar (params) {
        this.init(params);
    };

    LiveEditorToolbar.prototype.init = function (params) {
        this.$appendTo = params.$appendTo;
        this.create();
    };

    LiveEditorToolbar.prototype.create = function () {
        this.$modeSelect = $('<select class="form-control">')
                                .append('<option value="edit">Edit mode</option>')
                                .append('<option value="view">View mode</option>');
        this.$buttonAddOption = $('<button class="add-option" type="button">+ add option</button>');
        this.$undoButton = $('<button type="button" class="btn btn-default btn-undo">Undo</button>');
        this.$codePanelButton = $('<button class="btn btn-primary btn-sm code-panel-button" type="button" data-toggle="collapse" data-target="#code-panel">').text('< edit code >');
        this.$toolbar = $('<ul class="toolbar">');

        this.$toolbar.append($('<li>').append(this.$buttonAddOption));
        this.$toolbar.append($('<li>').append(this.$modeSelect));
        this.$toolbar.append($('<li>').append(this.$undoButton));
        this.$toolbar.append($('<li>').append(this.$codePanelButton));

        this.$appendTo.append(this.$toolbar);
    }

    window.LiveEditorToolbar = LiveEditorToolbar;
})(window, document, $);
@@ -627,37 +627,53 @@
 ton 
-class=%22add-option%22 type=%22butt
+type=%22button%22 class=%22btn btn-default add-opti
 on%22%3E
@@ -1358,16 +1358,17 @@
 );%0A    %7D
+;
 %0A%0A    wi

Add css to add-option button