Simple boid behaviour implementation in HTML5