basic xml parsing via javascript