js for xml

Some changes