web/boids.js: Refactor init() function

There's no need for a separate createResources() function since it is
only called once straight after the call to init(), so combine the two.