I have been having some trouble with making classes in JavaScript. I've looked at a lot of examples but can't seem to make them something I understand. The `alerts()` never occur below. 

```
function Player(){

    function run(){

        alert('run');
        self.update();
        self.draw();

    }

    function draw(){
        alert('draw');
    }

    function update(){
        alert('update');
    }

}

var player1 = new Player();
player1.run(); 

```