Update p5.js api and example