using javascript in html

Like @jeremydouglass said, I don’t see anywhere in your HTML where you include the P5.js library.

Shameless self-promotion: here is a guide on putting together a Hello World program in P5.js: