Basic model of Javascript script to loop through an XML file.