JavaScript library for parsing complex XML documents