JS/HTML, Canvasloth update (Events.js)