A simple javascript XML parser