How to make simple new game load game?

I already have the save game button in my menu, I want to use localstorage and I want to work like this. At the beginning of each scene (level) it will save the scene name, then next time you enter the game and click load game, it will get the data and switch scenes to the last one you were on. Here is my project → PlayCanvas | HTML5 Game Engine

This is the code to my load game button (which does not work)

function storageAvailable(type) {
    try {
        var storage = window[type],
            x = '__storage_test__';
        storage.setItem(x, x);
        storage.removeItem(x);
        return true;
    }
    catch (e) {
        return false;
    }
}

var LoadProg = pc.createScript('loadProg');


// initialize code called once per entity
LoadProg.prototype.initialize = function() {
    var app = this.app;

    this.saveData = 0;
    if (storageAvailable('localStorage')) {
        this.saveData = localStorage.getItem('progress');
        if (this.saveData === null) {
            this.saveData = 0;
        }
    }

    this.entity.button.once('click', function() {
        this.app.root.findComponents('sound').forEach(sound => { 
        sound.stop();
        });
        if (this.saveData === 0) {
            this.app.scenes.changeScene('Intro');
        }
        if (this.saveData === 1) {
            this.app.scenes.changeScene('One');
        }
        if (this.saveData === 2) {
            this.app.scenes.changeScene('Two');
        }
        if (this.saveData === 3) {
            this.app.scenes.changeScene('Three');
        }
        if (this.saveData === 4) {
            this.app.scenes.changeScene('Four');
        }
        if (this.saveData === 5) {
            this.app.scenes.changeScene('Five');
        }
        if (this.saveData === 6) {
            this.app.scenes.changeScene('Six');
        }
        if (this.saveData === 7) {
            this.app.scenes.changeScene('Seven');
        }
        if (this.saveData === 8) {
            this.app.scenes.changeScene('Eight');
        }
    }, this);
};

// update code called every frame
LoadProg.prototype.update = function(dt) {

};

// swap method called for script hot-reloading
// inherit your script state here
// LoadProg.prototype.swap = function(old) { };

// to learn more about script anatomy, please read:
// https://developer.playcanvas.com/en/user-manual/scripting/

Here is the save progress script, which is supposed to update the progress when the level starts, not sure if this script works

function storageAvailable(type) {
    try {
        var storage = window[type],
            x = '__storage_test__';
        storage.setItem(x, x);
        storage.removeItem(x);
        return true;
    }
    catch (e) {
        return false;
    }
}

var SaveProg = pc.createScript('saveProg');
SaveProg.attributes.add('Data', {type: 'string'});

// initialize code called once per entity
SaveProg.prototype.initialize = function() {
    if (storageAvailable('localStorage')) {
        localStorage.setItem('progress',this.Data);
    }
};

// update code called every frame
SaveProg.prototype.update = function(dt) {

};

// swap method called for script hot-reloading
// inherit your script state here
// SaveProg.prototype.swap = function(old) { };

// to learn more about script anatomy, please read:
// https://developer.playcanvas.com/en/user-manual/scripting/