I drew a canvas, and then with the code
canvas.addEventListener(\"mousedown\", clicked(event), false);
I added an event listener to run clicked
canvas.addEventListener("mousedown", clicked,false);