how to retrieve data from xml file using javascript