Using p.setup() etc. helps to position the sketch correctly in relation to other material on the page.

Developing in Glitch rather than p5.js also allows you to view the results properly on a live version of the site. (Recently I have found the "full" versions of p5.js sketches don't work well on smartphone/tablet.)