added XML.js
update client.js
code documentation added