fixed readability

that entire collision detection block wass cargo-culted from
http://mbostock.github.com/d3/talk/20110921/collision.html