Can't get mouse click toggle event to work in Game of Life WASM tutorial

Can't seem to get the mouse click toggle event working. On clicking, a live cell should turn dead and a dead cell should turn alive.

I have uploaded the Rust/WASM Game of Life tutorial project in this Github Repo for those who want to find the issue. PRs are welcome.

My bad. Just changed the variable name from CanvasRight to CanvasTop in www/index.js and it is working now.