Refactor boxesOverlap into a DOMUtil method
[minor] Remove an unneeded var