playing with D3 collision detection