Javascript Animation using the canvas element.