Headache-free DOM collection management and traversal