XML TO Dict - Javascript