When I try to run a script which will change the lights when I press the button, nothing happens, the images don't even show. Any way I could fix?

Here is the code:

```
<!DOCTYPE html> 
<html> 
<body>
<h1>JavaScript Task 3</h1>

<p>This is my Traffic Light script</p>

<img id="IMG" src=N:\Year 10\Computing\Exam\A452 Practical Exam\Interactive Buttons\>

<button type="button" onclick="changeLights()">Change Lights</button>

<script>
var list=[];
    list[0] = '<img src="N:\Year 10\Computing\Exam\A452 Practical Exam\Interactive Buttons\red.jpg" width="254"height="501" alt="Traffic Light Red">';
    list[1] = '<img src="N:\Year 10\Computing\Exam\A452 Practical Exam\Interactive Buttons\green.jpg" width="249" height="494" alt="Traffic Light Yellow">';
    list[2] = '<img src="N:\Year 10\Computing\Exam\A452 Practical Exam\Interactive Buttons\yellow.jpg" width="243" height="506" alt="Traffic Light Green">';

function changeLights() {
  var list = document.getElementById('IMG');
    if list=0 {
    image.src='<img src="N:\Year 10\Computing\Exam\A452 Practical Exam\Interactive Buttons\red.jpg" width="254"height="501" alt="Traffic Light Red">';
} else if list=1 {
    image.src=1;
} else if list=2 {
    image.src=2;
}
</script>

</body>
</html> 

```