function MainAssistant(unique) {
    this.unique = unique;
    this.pushSceneHandler = this.pushScene.bindAsEventListener(this);
    this.cloneSceneHandler = this.cloneScene.bindAsEventListener(this);
};

MainAssistant.prototype = {
    setup: function() {
        var uniqueEl = this.controller.sceneElement.querySelector(".unique-id");
        uniqueEl.textContent = $L("Unique Id: #{unique}").interpolate({ unique: this.unique });

        this.controller.setupWidget("push-scene", {label: $L("Push New Scene")}, {});
        this.controller.listen("push-scene", Mojo.Event.tap, this.pushSceneHandler);

        this.controller.setupWidget("clone-scene", {label: $L("Clone Scene to Stage")}, {});
        this.controller.listen("clone-scene", Mojo.Event.tap, this.cloneSceneHandler);
    },
    cleanup: function() {
        this.controller.stopListening("push-scene", Mojo.Event.tap, this.pushSceneHandler);
        this.controller.stopListening("clone-scene", Mojo.Event.tap, this.cloneSceneHandler);
    },

    pushScene: function() {
        this.controller.stageController.pushScene("main", (Math.random()*1000)|0);
    },
    cloneScene: function() {
        StageManager.cloneSceneIntoNewStage(this.controller);
    },
};

function MainAssistant(unique) {
    this.unique = unique;
    this.pushSceneHandler = this.pushScene.bindAsEventListener(this);
    this.cloneSceneHandler = this.cloneScene.bindAsEventListener(this);
};

MainAssistant.prototype = {
    setup: function() {
        var uniqueEl = this.controller.sceneElement.querySelector(".unique-id");
        uniqueEl.textContent = $L("Unique Id: #{unique}").interpolate({ unique: this.unique });

        this.controller.setupWidget("push-scene", {label: $L("Push New Scene")}, {});
        this.controller.listen("push-scene", Mojo.Event.tap, this.pushSceneHandler);

        this.controller.setupWidget("clone-scene", {label: $L("Clone Scene to New Stage")}, {});
        this.controller.listen("clone-scene", Mojo.Event.tap, this.cloneSceneHandler);
    },
    cleanup: function() {
        this.controller.stopListening("push-scene", Mojo.Event.tap, this.pushSceneHandler);
        this.controller.stopListening("clone-scene", Mojo.Event.tap, this.cloneSceneHandler);
    },

    pushScene: function() {
        this.controller.stageController.pushScene("main", (Math.random()*1000)|0);
    },
    cloneScene: function() {
        StageManager.cloneSceneIntoNewStage(this.controller);
    },
};

Clone to new stage wording