now deal with xml in JS. good luck!