Quadtree-lib
Basic demo
Left click
to add
elements,
right click
to reset,
mouseover
to highlight collisions.