web/boids.js: Refactor the context
Include math.h as necessary