merged event.js, and canvas.js into main

Yeah...it's super long