web/boids.js: Refactor vertices creation