Quadtree Collision detection in haxe

Controls: (Canvas window has to be in focus)

The boxes are red when they collide with each other and green if selected.

This is my implementation of a quadtree for collision detection. It is written in Haxe and uses Kha to visualize it.
You can find the source here.