I have this snippet of code in a p5.js draw function (I put noLoop so I don\'t get overflowed by errors) and when I run it, at the part where it reads from the DOM element,