(function($, fluid) {
    "use strict";

    fluid.defaults("demo.state.endingScreen", {
        gradeNames: "fluid.phaser.state",
        invokers: {
            preload: {
                funcName: "demo.state.endingScreen.preload",
                args: []
            },
            create: {
                funcName: "demo.state.endingScreen.create",
                args: ["{that}", "{demo.discoveryCat}.prefModel.model"]
            },
            update: {
                funcName: "demo.state.endingScreen.update",
                args: []
            },
            yesNosimplify: {
                funcName: "demo.state.endingScreen.yesNo",
                args: ["{that}", "{demo.discoveryCat}.prefModel.model", "simplify", 480]
            },
            yesNohighContrast: {
                funcName: "demo.state.endingScreen.yesNo",
                args: ["{that}", "{demo.discoveryCat}.prefModel.model", "size", 360]
            },
            yesNoShowSound: {
                funcName: "demo.state.endingScreen.yesNo",
                args: ["{that}", "{demo.discoveryCat}.prefModel.model", "sound", 540]
            },
            stateEnterAnimation: {
                funcName: "demo.state.prelude.stateEnterAnimation",
                args: ["{that}", 0, 0]
            },
            resetButtonCallback: {
                funcName: "demo.state.endingScreen.resetButtonCallback",
                args: []
            }
        }
    });

    demo.state.endingScreen.resetButtonCallback = function() {
        window.location.reload(false);
    };

    demo.state.endingScreen.yesNo = function(that, model, prop, propY) {
        if (model[prop]) {
            that.add.text(900, propY, "YES", { font: "35px Arial", fill: "#5cbd6c" });
        } else {
            that.add.text(900, propY, "NO", { font: "35px Arial", fill: "#b72025" });
        }
    };

    // Phaser functions
    demo.state.endingScreen.preload = function() {

    };

    demo.state.endingScreen.create = function(that, model) {
        that.stage.backgroundColor = "#000";

        that.emitter = that.add.emitter(that.world.centerX, -200, 200);
        that.emitter.makeParticles("pattern");
        that.emitter.start(false, 8000, 50);
        that.emitter.width = 800;

        that.heading = that.add.text(640, 80, model.lang.obj.thankyou,
                                            { font: "65px Arial", fill: "#fff" });
        that.heading.anchor.setTo(0.5, 0.5);

        that.add.text(250, 300, "SIZE :", { font: "35px Arial", fill: "#fff" });
        // FOR DIFFERENT SIZES
        if (model.size === 1) {
            that.sizeText = "SMALL";
        } else if (model.size === 1.1) {
            that.sizeText = "MEDIUM";
        } else {
            that.sizeText = "LARGE";
        }
        that.add.text(900, 300, that.sizeText, { font: "35px Arial", fill: "#fed600" });

        that.add.text(250, 360, "HIGH CONTRAST :", { font: "35px Arial", fill: "#fff" });
        that.yesNohighContrast();

        that.add.text(250, 420, "LANGUAGE :", { font: "35px Arial", fill: "#fff" });
        that.add.text(900, 420, model.lang.type, { font: "35px Arial", fill: "#fed600" });

        that.add.text(250, 480, "SIMPLIFY :", { font: "35px Arial", fill: "#fff" });
        that.yesNosimplify();

        that.add.text(250, 540, "SHOW SOUND :", { font: "35px Arial", fill: "#fff" });
        that.yesNoShowSound();

        that.add.text(50, 770, model.lang.obj.cookieNote,
                                            { font: "35px Arial", fill: "#fed600" });

        that.resetButton = that.add.button(1110, 680, "upDownButtonsp",
                                            that.resetButtonCallback, that, 22, 21, 21);
        that.resetButton.scale.setTo(0.8, 0.8);

        that.input.keyboard.removeKey(Phaser.Keyboard.ENTER);
        that.enter = that.input.keyboard.addKey(Phaser.Keyboard.ENTER);
        that.enter.onDown.add(that.resetButtonCallback, that);

        that.stateEnterAnimation();
    };

    demo.state.endingScreen.update = function() {

    };

})(jQuery, fluid);

@@ -916,20 +916,24 @@
 odel%22, %22
-size
+contrast
 %22, 360%5D%0A

Fix contrast bool in endingScreen state