Cross-browser JavaScript implementation of XSLT