Hey guys, 

I'm basicly stuck on tutorial 43 on the HTML5 section (Animations for games). 
I type the code exactly the same as in the tutorial, but it does not seem to work.

so if anyone could take a look at the code I typed, and can tell me what is wrong with it, that would be appreciated!

function doFirst(){
var x = document.getElementById('canvas');
canvas = x.getContext('2d');

window.addEventListener('mousemove', draw, false);

function draw(e){
var xPos = e.clientX;
var yPos = e.clientY;
canvas.fillRect(xPos, Ypos, 100, 100);


window.addEventListener("load", doFirst, false);