New To Phaser 3 - Need Some Help With Modifying The Official Tutorial

Hi,

Been working with Phaser 3 for a few days.
I have gone through the official 1st game tutorial here.

I have moved below code from index.html to coreVisuals.js:

function LoadAllGraphics () // Not working?
{
    this.load.image('sky', 'assets/sky.png');
    this.load.image('ground', 'assets/platform.png');
    this.load.image('star', 'assets/star.png');
    this.load.image('bomb', 'assets/bomb.png');
    this.load.spritesheet('dude', 'assets/dude.png', { frameWidth: 32, frameHeight: 48 });
}

But it does not run in browser and produces below error:
Phaser3_Browser_Error

Any ideas?

Jesse

Below is full source code:
https://bitbucket.org/jesseleepalser/phaser-engine/src/master/

LoadAllGraphics.call(this);

Worked, thanks!