Everything works, i just want to know if i can change the way the xml tags are retreived. This way seems a bit bulky - but i could be wrong. Thoughts?    var d = 0    $(.timeline).children().eq(d).addClass(active)    // default traverse function to buttons, inject node    prev.data(node, array.length-1)    next.data(node, 1)    // use default node to get default properties    src = xml.getElementsByTagName(src)[d].childNodes[0].nodeValue    name = xml.getElementsByTagName(name)[d].childNodes[0].nodeValue    date = xml.getElementsByTagName(date)[d].childNodes[0].nodeValue    desc = xml.getElementsByTagName(desc)[d].childNodes[0].nodeValue    img = '<img alt='+name+' src='+src+'>'        // inject default image properties        $(.stage).html(img)        $(.window).width($(.stage).width())        $(.name).html(name), $(.date).html(date), $(.desc).html(desc)
How can I make this XML gallery snippet prettier?
javascript;jquery;html;xml